Permalink
Cannot retrieve contributors at this time
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?
eswc2020-web-query-client/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (13 sloc)
415 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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;"] |