Skip to content

Instantly share code, notes, and snippets.

@StanGirard
Created October 14, 2020 07:19
Show Gist options
  • Save StanGirard/3fb49dfa13ea2f5cb6e0d6c554539790 to your computer and use it in GitHub Desktop.
Save StanGirard/3fb49dfa13ea2f5cb6e0d6c554539790 to your computer and use it in GitHub Desktop.
Add Nginx Stage to Dockerfile
### Add to your existing Dockerfile
...
# ------------------------------------------------------
# Production Build
# ------------------------------------------------------
FROM nginx
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/build /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment