quartz/Dockerfile
Struchkov Mark db3eba231f
All checks were successful
continuous-integration/drone/push Build is passing
added zip_image.sh
2024-09-03 15:09:18 +03:00

21 lines
408 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
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/ /usr/src/app/
COPY . .
RUN chmod +x zip_image.sh
ENTRYPOINT ["npx", "quartz"]