terminal-cv/Dockerfile
greg 7df8a5b835
Some checks failed
continuous-integration/drone/push Build is failing
clean up and repaire
2023-06-12 11:33:40 +02:00

13 lines
350 B
Docker

FROM debian:bullseye-slim as builder
RUN apt update
WORKDIR /data
COPY . .
RUN apt-get install npm
RUN npm install -i package.json \
&& npm run build
FROM alpine
RUN apk update \
&& apk add lighttpd \
&& rm -rf /var/cache/apk/*
COPY --from=builder /data/dist /var/www/localhost/htdocs
CMD ["lighttpd","-D","-f","/etc/lighttpd/lighttpd.conf"]