2024-09-01 15:16:11 +03:00
|
|
|
FROM node:20-slim AS builder
|
2023-10-08 19:59:18 +03:00
|
|
|
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
|
|
|
|
|
2023-10-08 19:59:18 +03:00
|
|
|
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"]
|