Skip to content

Instantly share code, notes, and snippets.

@m24te28
Created February 23, 2019 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save m24te28/55047cb15a10d3ef99aaea157567ae57 to your computer and use it in GitHub Desktop.
Save m24te28/55047cb15a10d3ef99aaea157567ae57 to your computer and use it in GitHub Desktop.
Dockerfile for nginx on ubuntu
FROM ubuntu:18.04
LABEL maintainer="m24te28"
RUN apt-get update && \
apt-get install -y -q curl gnupg2
RUN curl http://nginx.org/keys/nginx_signing.key | apt-key add -
RUN apt-get update && \
apt-get install -y -q nginx
ADD nginx.conf /etc/nginx/
ADD server.conf /etc/nginx/conf.d
EXPOSE 443 80
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment