quartz/Dockerfile
Struchkov Mark e3c4262834
All checks were successful
continuous-integration/drone/push Build is passing
fixed .dockerignore
2024-09-07 11:15:27 +03:00

22 lines
419 B
Docker

FROM node:20-slim AS builder
WORKDIR /usr/src/app
COPY package.json .
COPY package-lock.json* .
RUN npm ci
FROM node:20-alpine
RUN apk update && apk add --no-cache \
optipng \
advancecomp \
pngcrush \
jpegoptim \
libwebp-tools \
findutils \
bash \
git
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/ /usr/src/app/
COPY . .
#RUN chmod +x zip_image.sh
ENTRYPOINT ["npx", "quartz"]