Skip to content
Go to file
Cannot retrieve contributors at this time
21 lines (13 sloc) 415 Bytes
## 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;"]
You can’t perform that action at this time.