TelegramRSS/Dockerfile

21 lines
389 B
Docker
Raw Normal View History

2023-04-12 20:18:27 +00:00
FROM node:19
2020-01-07 22:03:26 +00:00
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
RUN apt-get update
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ENV NODE_ENV=production
2023-04-12 21:09:46 +00:00
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
COPY ".yarn" /usr/src/app/.yarn
2020-01-07 22:03:26 +00:00
2023-04-12 20:27:05 +00:00
RUN yarn install
2020-01-07 22:03:26 +00:00
COPY lib/ /usr/src/app/lib
VOLUME [ "/usr/src/app/logs", "/usr/src/app/persist"]
CMD ["npm", "run", "start"]