Skip to content
Browse files

add Dockerfile for dev2p2

  • Loading branch information...
naviat committed Jun 19, 2019
1 parent b78c0cc commit 084f3e73e72bfe72c38e488e6e5953306ef1b642
Showing with 13 additions and 0 deletions.
  1. +13 −0 Dockerfile
@@ -0,0 +1,13 @@
# Stage 0, "build-stage", based on Node.js, to build and compile the frontend
FROM tiangolo/node-frontend:10 as build-stage
COPY package*.json /app/
RUN npm install
COPY ./ /app/
RUN npm run build

# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
FROM nginx:1.15
COPY --from=build-stage /app/build/ /usr/share/nginx/html
# Copy the default nginx.conf
COPY --from=build-stage /nginx.conf /etc/nginx/conf.d/default.conf

0 comments on commit 084f3e7

Please sign in to comment.
You can’t perform that action at this time.