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 \
|
2024-09-04 23:33:45 +03:00
|
|
|
bash \
|
2024-09-18 19:30:02 +03:00
|
|
|
git \
|
2024-10-11 20:43:11 +03:00
|
|
|
openssh-client \
|
|
|
|
coreutils
|
2024-09-03 09:19:22 +03:00
|
|
|
|
2023-10-08 19:59:18 +03:00
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY --from=builder /usr/src/app/ /usr/src/app/
|
|
|
|
COPY . .
|
2024-09-07 11:15:27 +03:00
|
|
|
#RUN chmod +x zip_image.sh
|
2024-09-01 17:44:29 +03:00
|
|
|
ENTRYPOINT ["npx", "quartz"]
|