deluge-windscribe-ephemeral.../Dockerfile
2021-12-26 02:31:03 +01:00

28 lines
No EOL
367 B
Docker

FROM node:16-alpine as build
WORKDIR /builder
COPY package.json yarn.lock ./
RUN yarn install --pure-lockfile
COPY . .
RUN yarn build
FROM node:16-alpine
ENV NODE_ENV=production
ENV PORT=3000
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" ]