deluge-windscribe-ephemeral.../Dockerfile

31 lines
413 B
Docker
Raw Normal View History

2021-12-26 02:31:03 +01:00
FROM node:16-alpine as build
2021-12-25 20:53:13 +01:00
WORKDIR /builder
COPY package.json yarn.lock ./
RUN yarn install --pure-lockfile
COPY . .
RUN yarn build
2021-12-26 02:31:03 +01:00
FROM node:16-alpine
2021-12-25 20:53:13 +01:00
ENV NODE_ENV=production
ENV PORT=3000
2022-09-08 01:47:17 +02:00
ENV CACHE_DIR=/cache
RUN mkdir -p $CACHE_DIR
2021-12-25 20:53:13 +01:00
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --pure-lockfile
COPY --from=build /builder/dist ./dist
EXPOSE ${PORT}
CMD [ "node", "dist/index.js" ]