maj drone image format + Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
greglebreton 2022-12-27 13:16:10 +01:00
parent 772c1e6a6f
commit 82b5ff0d9b
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ steps:
# registry: "dockerregistry.legaragenumerique.fr" # registry: "dockerregistry.legaragenumerique.fr"
# insecure: true # insecure: true
# privileged: true # privileged: true
repo: "greglebreton/terminal-cv:latest" repo: "greglebreton/terminal-cv"
# tags: ${DRONE_TAG} # tags: ${DRONE_TAG}
dockerfile: ./Dockerfile dockerfile: ./Dockerfile

View File

@ -1,14 +1,14 @@
FROM debian:bullseye-slim as builder FROM debian:bullseye-slim as builder
WORKDIR /data WORKDIR /data
COPY . . 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 \ RUN npm install -i package.json \
&& npm run build && npm run build
FROM alpine FROM alpine
RUN apk add lighttpd \
RUN apk update \
&& apk add lighttpd \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
COPY --from=builder /data/dist /var/www/localhost/htdocs COPY --from=builder /data/dist /var/www/localhost/htdocs