From 82b5ff0d9b9e4bb2f361e2b0543f9d94a595e47a Mon Sep 17 00:00:00 2001 From: greglebreton Date: Tue, 27 Dec 2022 13:16:10 +0100 Subject: [PATCH] maj drone image format + Dockerfile --- .drone.yml | 2 +- Dockerfile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5dd1568..2e6b993 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,7 +28,7 @@ steps: # registry: "dockerregistry.legaragenumerique.fr" # insecure: true # privileged: true - repo: "greglebreton/terminal-cv:latest" + repo: "greglebreton/terminal-cv" # tags: ${DRONE_TAG} dockerfile: ./Dockerfile diff --git a/Dockerfile b/Dockerfile index 92b0ce5..92339d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ FROM debian:bullseye-slim as builder WORKDIR /data COPY . . -RUN apt update && apt install -y npm + +#RUN apt update && apt install -y npm +RUN apt install -y npm RUN npm install -i package.json \ && npm run build FROM alpine - -RUN apk update \ - && apk add lighttpd \ +RUN apk add lighttpd \ && rm -rf /var/cache/apk/* COPY --from=builder /data/dist /var/www/localhost/htdocs