TelegramRSS/Dockerfile

29 lines
489 B
Docker
Raw Normal View History

2023-04-25 22:04:56 +00:00
FROM node:19 as builder
2020-01-07 22:03:26 +00:00
2023-04-25 22:04:56 +00:00
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
2020-01-07 22:03:26 +00:00
2023-04-25 22:04:56 +00:00
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
2020-01-07 22:03:26 +00:00
2023-04-25 22:04:56 +00:00
RUN mkdir -p /app
WORKDIR /app
2020-01-07 22:03:26 +00:00
ENV NODE_ENV=production
2023-04-12 21:09:46 +00:00
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
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
2023-04-25 22:04:56 +00:00
COPY --from=builder lib/ /app/lib
2020-01-07 22:03:26 +00:00
2023-04-25 22:04:56 +00:00
VOLUME [ "/app/logs", "/app/persist"]
2020-01-07 22:03:26 +00:00
2023-04-25 22:04:56 +00:00
CMD ["node", "lib/index.js"]