mirror of
https://github.com/dumbasPL/deluge-windscribe-ephemeral-port.git
synced 2024-11-10 01:02:17 +01:00
28 lines
No EOL
367 B
Docker
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" ] |