quartz/Dockerfile

23 lines
440 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 \
2024-09-04 23:33:45 +03:00
bash \
2024-09-18 19:30:02 +03:00
git \
openssh-client
2024-09-03 09:19:22 +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"]