deluge-windscribe-ephemeral.../Dockerfile

32 lines
414 B
Docker
Raw Permalink Normal View History

FROM node:18-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
FROM node:18-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" ]