VueTorrent/Dockerfile

17 lines
317 B
Text
Raw Normal View History

2020-03-22 10:59:38 +01:00
# build stage
FROM node:10-slim as build-stage
2019-08-10 17:56:54 +02:00
# Create app directory
WORKDIR /usr/src/app
COPY package*.json ./
2019-04-18 07:51:52 +02:00
RUN npm install
2019-08-10 17:56:54 +02:00
COPY . .
2020-03-22 10:59:38 +01:00
RUN npm run build
2019-04-18 07:51:52 +02:00
2020-03-22 10:59:38 +01:00
# production stage
FROM node:10-slim as production-stage
COPY --from=build-stage /usr/src/app /usr/src/app
2019-04-18 07:51:52 +02:00
2020-03-22 10:59:38 +01:00
#serve
EXPOSE 3001
CMD ["node", "server/server.js"]