maj drone image format + Dockerfile

main
greglebreton 2 years ago
parent 772c1e6a6f
commit 82b5ff0d9b
  1. 2
      .drone.yml
  2. 8
      Dockerfile

@ -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

@ -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

Loading…
Cancel
Save