Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
## Build the website
FROM node:8.10.0 as builder
WORKDIR /webapp
ADD . .
# Install the node module
RUN npm install --unsafe-perm
RUN npm run production
## Deploy the website using nginx
FROM nginx:1.17.7-alpine
# Copy build folder from 'builder' to the default nginx public folder
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /webapp/build/ /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]