Files

28 lines
403 B
Docker

FROM alpine:3.19
RUN apk add --no-cache \
nodejs \
npm \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont \
udev \
bash \
curl
ENV CHROME_BIN=/usr/bin/chromium-browser \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /app
COPY package.json ./
RUN npm install --production
COPY . .
RUN chmod a+x /app/run.sh
CMD [ "/app/run.sh" ]