Created
January 23, 2019 17:23
-
-
Save Harshmakadia/08c6c9b69c9f9d5d3a8bb9edbff8a8e5 to your computer and use it in GitHub Desktop.
Docker File for create react app
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
# Use below nginx version | |
FROM nginx:1.15.2-alpine | |
# Copy the build folder of the react app | |
COPY ./build /var/www | |
# Copy the ngnix configrations | |
COPY deployments/nginx.conf /etc/nginx/nginx.conf | |
# Expose it on port 80 | |
EXPOSE 80 | |
ENTRYPOINT ["nginx","-g","daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment