Skip to content

Instantly share code, notes, and snippets.

@mr337
Created March 25, 2020 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mr337/6bede82daa4a3dda4825b2f513063a84 to your computer and use it in GitHub Desktop.
Save mr337/6bede82daa4a3dda4825b2f513063a84 to your computer and use it in GitHub Desktop.
Nginx Docker File (custom config and static assets)
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