Created
February 23, 2019 06:52
-
-
Save m24te28/55047cb15a10d3ef99aaea157567ae57 to your computer and use it in GitHub Desktop.
Dockerfile for nginx on ubuntu
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 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