Skip to content

Commit

Permalink
Merge pull request #35 from balena-io/34-mask-nginx
Browse files Browse the repository at this point in the history
nginx: Mask nginx service after install
  • Loading branch information
hedss authored Mar 27, 2019
2 parents 5d2e167 + 3f0556d commit 609e2db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM balena/open-balena-base:v7.0.0
ENV NGINX_VERSION 1.14.2-1~stretch
ENV YARN_VERSION 1.13.0-1

# Note that we stop nginx from being available in systemd, as we run it manually in downstream images
RUN echo 'deb http://deb.debian.org/debian jessie main' >> /etc/apt/sources.list \
&& wget -q -O - https://nginx.org/keys/nginx_signing.key | apt-key add - \
&& echo 'deb http://nginx.org/packages/debian/ stretch nginx' >> /etc/apt/sources.list \
Expand All @@ -15,4 +16,5 @@ RUN echo 'deb http://deb.debian.org/debian jessie main' >> /etc/apt/sources.list
&& apt-get install yarn=${YARN_VERSION} google-chrome-stable nginx=${NGINX_VERSION} -y \
&& rm /etc/init.d/nginx \
&& rm -rf /etc/nginx/conf.d/* \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& systemctl mask nginx.service

0 comments on commit 609e2db

Please sign in to comment.