TelegramRSS/Dockerfile
Fabian Stamm 9dfb1342e5
Some checks failed
continuous-integration/drone/push Build is failing
New version of this thing
2023-04-26 00:04:56 +02:00

29 lines
489 B
Docker

FROM node:19 as builder
RUN mkdir -p /app
WORKDIR /app
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/app/"]
COPY ["src", "/app/src"]
RUN yarn install
RUN yarn build
FROM node:19
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
RUN mkdir -p /app
WORKDIR /app
ENV NODE_ENV=production
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
RUN yarn install
COPY --from=builder lib/ /app/lib
VOLUME [ "/app/logs", "/app/persist"]
CMD ["node", "lib/index.js"]