Skip to content

Instantly share code, notes, and snippets.

@Harshmakadia
Created January 23, 2019 17:23
Show Gist options
  • Save Harshmakadia/08c6c9b69c9f9d5d3a8bb9edbff8a8e5 to your computer and use it in GitHub Desktop.
Save Harshmakadia/08c6c9b69c9f9d5d3a8bb9edbff8a8e5 to your computer and use it in GitHub Desktop.
Docker File for create react app
# 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