TelegramRSS/Dockerfile
Fabian Stamm 428f6c6c22
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
ASd
2023-04-12 23:09:46 +02:00

21 lines
389 B
Docker

FROM node:19
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
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
COPY ".yarn" /usr/src/app/.yarn
RUN yarn install
COPY lib/ /usr/src/app/lib
VOLUME [ "/usr/src/app/logs", "/usr/src/app/persist"]
CMD ["npm", "run", "start"]