quartz/Dockerfile

21 lines
408 B
Docker
Raw Normal View History

2024-09-01 15:16:11 +03:00
FROM node:20-slim AS builder
WORKDIR /usr/src/app
COPY package.json .
COPY package-lock.json* .
RUN npm ci
2024-09-01 17:44:29 +03:00
FROM node:20-alpine
2024-09-03 09:19:22 +03:00
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 . .
2024-09-03 09:19:22 +03:00
RUN chmod +x zip_image.sh
2024-09-01 17:44:29 +03:00
ENTRYPOINT ["npx", "quartz"]