mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
26 lines
421 B
Docker
26 lines
421 B
Docker
FROM node:20
|
|
|
|
WORKDIR /fredy
|
|
|
|
COPY . /fredy
|
|
|
|
RUN apt-get update && apt-get install -y chromium
|
|
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
|
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
|
|
|
RUN yarn install
|
|
|
|
RUN yarn global add pm2
|
|
|
|
RUN yarn run prod
|
|
|
|
RUN mkdir /db /conf && \
|
|
chown 1000:1000 /db /conf && \
|
|
chmod 777 -R /db/ && \
|
|
ln -s /db /fredy/db && ln -s /conf /fredy/conf
|
|
|
|
EXPOSE 9998
|
|
|
|
CMD pm2-runtime index.js
|