Skip to content

Commit b1c8a01

Browse files
committed
Chore(env) - Use nginx:mainline-alpine-slim instead of nginx:latest
1 parent 40dc3c4 commit b1c8a01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docker/nginx/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM nginx:latest
1+
FROM nginx:mainline-alpine-slim
22

33
ADD nginx.conf /etc/nginx/conf.d/default.conf
44
ADD php-upstream.conf /etc/nginx/conf.d/upstream.conf
55

66
# https://cloud.google.com/monitoring/agent/plugins/nginx
7-
RUN apt-get update && apt-get install -y curl
7+
RUN apk update && apk add curl
88
RUN cd /etc/nginx/conf.d/ \
99
&& curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/nginx/conf.d/status.conf \
10-
&& rm -rf /var/lib/apt/lists/*
10+
&& rm -rf /var/cache/apk/*

docker/nginx/Dockerfile_dev

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:latest
1+
FROM nginx:mainline-alpine-slim
22

33
# Note that this `nginx-dev.conf` is also mounted within `compose.yaml`
44
# so you don't need to build containers if you change something there, restart
@@ -7,7 +7,7 @@ ADD nginx-dev.conf /etc/nginx/conf.d/default.conf
77
ADD php-upstream.conf /etc/nginx/conf.d/upstream.conf
88

99
# https://cloud.google.com/monitoring/agent/plugins/nginx
10-
RUN apt-get update && apt-get install -y curl
10+
RUN apk update && apk add curl
1111
RUN cd /etc/nginx/conf.d/ \
1212
&& curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/nginx/conf.d/status.conf \
13-
&& rm -rf /var/lib/apt/lists/*
13+
&& rm -rf /var/cache/apk/*

0 commit comments

Comments
 (0)