Files
fredy/Dockerfile

29 lines
501 B
Docker
Raw Normal View History

2024-07-24 09:39:27 +02:00
FROM node:20
2025-05-15 10:16:43 +02:00
WORKDIR /fredy
2025-05-15 10:37:21 +02:00
COPY . /fredy
2025-05-15 10:37:21 +02:00
RUN apt-get update && apt-get install -y chromium
2025-05-15 10:37:21 +02:00
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
# Timeout fix für yarn hinzugefügt
RUN yarn config set network-timeout 600000
2025-05-15 10:37:21 +02:00
RUN yarn install
RUN yarn global add pm2
2025-05-15 10:16:43 +02:00
RUN yarn run prod
RUN mkdir /db /conf && \
2025-05-15 10:37:21 +02:00
chown 1000:1000 /db /conf && \
chmod 777 -R /db/ && \
ln -s /db /fredy/db && ln -s /conf /fredy/conf
EXPOSE 9998
2025-05-15 10:37:21 +02:00
CMD pm2-runtime index.js