From d493d653368fe836f8097cad2fdb7dec7d592732 Mon Sep 17 00:00:00 2001 From: gregandev Date: Tue, 27 Dec 2022 15:47:25 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index ca07793..e537dcf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ FROM debian:bullseye-slim as builder RUN apt update -# WORKDIR /data -# COPY . . -# RUN apt install -y npm -# RUN npm install -i package.json \ -# && npm run build +WORKDIR /data +COPY . . +RUN apt install -y 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"] \ No newline at end of file +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"] \ No newline at end of file