dispatcher/Dockerfile
cheetah 8295e63fe8
All checks were successful
build / build (push) Successful in 1m46s
optimized dockerfile
2025-04-05 05:27:08 +02:00

23 lines
No EOL
366 B
Docker

ARG NODE_VERSION=23.0.0
FROM node:${NODE_VERSION}-alpine
ENV NODE_ENV production
RUN apk add chromium python3 g++ make py3-pip
WORKDIR /usr/src/app
ENV CHROME_BIN="/usr/bin/chromium-browser"\
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
COPY package.json .
RUN npm install puppeteer
RUN npm install
COPY . .
USER node
EXPOSE 3000
EXPOSE 3001
CMD node index.js