platform/services/print/pod-print/Dockerfile
Andrey Sobolev 60142c18fd
qfix chromium install
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-12-07 02:29:51 +07:00

23 lines
791 B
Docker

FROM node:20
# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# Set executable path for puppeteer
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
# Install Chromium and fonts
# https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md?plain=1#L397
RUN apt-get update && \
apt-get install -y gnupg wget dumb-init && \
apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 && \
apt-get install -y chromium=131.0.6778.85-1~deb12u1 --no-install-recommends && \
apt-get clean
WORKDIR /usr/src/app
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm
COPY bundle/bundle.js ./
CMD [ "dumb-init", "node", "bundle.js" ]