terminal-cv/Dockerfile
gregandev bd7b805c6c
Some checks failed
continuous-integration/drone/push Build is failing
Mise à jour de 'Dockerfile'
2023-06-12 11:46:19 +02:00

12 lines
353 B
Docker

FROM debian:bullseye-slim as builder
WORKDIR /data
COPY . .
RUN apt-get update && 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"]