Skip to content

Instantly share code, notes, and snippets.

@m24te28 m24te28/Dockerfile
Created Feb 23, 2019

What would you like to do?
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 | 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
You can’t perform that action at this time.