Skip to content

Instantly share code, notes, and snippets.

@mr337
Created March 25, 2020 17:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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