Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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;"]