Created
March 25, 2020 17:57
-
-
Save mr337/6bede82daa4a3dda4825b2f513063a84 to your computer and use it in GitHub Desktop.
Nginx Docker File (custom config and static assets)
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
FROM nginx:1.17.4-alpine | |
# configure nginx | |
RUN rm /etc/nginx/conf.d/default.conf | |
COPY nginx.conf /etc/nginx/conf.d | |
# copy static assets so nginx container serves them | |
WORKDIR /srv/portal/ | |
COPY ./assets /srv/portal/static | |
# for debugging | |
#RUN apk add bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment