Grimore / Dockerfile
Ricky01anjay's picture
Update Dockerfile
4b024e6 verified
raw
history blame contribute delete
629 Bytes
FROM node:18-slim
RUN apt-get update && apt-get install -y \
chromium \
ffmpeg \
dumb-init \
fonts-ipafont-gothic \
fonts-wqy-zenhei \
fonts-thai-tlwg \
fonts-kacst \
fonts-freefont-ttf \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium \
FFMPEG_PATH=/usr/bin/ffmpeg
WORKDIR /app
COPY . .
RUN npm init -y && \
npm install express puppeteer puppeteer-screen-recorder fluent-ffmpeg axios body-parser
EXPOSE 7860
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["node", "index.js"]