Files
fredy/Dockerfile
Christian Kellner f07aa0a06d using node 20
2024-07-24 09:39:27 +02:00

21 lines
279 B
Docker

FROM node:20
WORKDIR /fredy
COPY . /fredy
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