mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-12-25 12:06:31 +00:00
Switch to official nginx base-image.
This changes the base-image to the official nginx image, reducing the virtual size of the image by approx 50%. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
0580726415
commit
3c5843264e
11
Dockerfile
11
Dockerfile
@ -1,14 +1,10 @@
|
||||
FROM ubuntu:14.04
|
||||
FROM nginx:1.7
|
||||
MAINTAINER Jason Wilder jwilder@litl.com
|
||||
|
||||
# Install Nginx.
|
||||
RUN echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" > /etc/apt/sources.list.d/nginx-stable-trusty.list \
|
||||
&& echo "deb-src http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" >> /etc/apt/sources.list.d/nginx-stable-trusty.list \
|
||||
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C \
|
||||
&& apt-get update \
|
||||
# Install wget and install/updates certificates
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y -q --no-install-recommends \
|
||||
ca-certificates \
|
||||
nginx \
|
||||
wget \
|
||||
&& apt-get clean \
|
||||
&& rm -r /var/lib/apt/lists/*
|
||||
@ -30,7 +26,6 @@ RUN wget https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VER
|
||||
COPY . /app/
|
||||
WORKDIR /app/
|
||||
|
||||
EXPOSE 80 443
|
||||
ENV DOCKER_HOST unix:///tmp/docker.sock
|
||||
|
||||
VOLUME ["/etc/nginx/certs"]
|
||||
|
Loading…
Reference in New Issue
Block a user