File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- FROM nginx:latest
1+ FROM nginx:mainline-alpine-slim
22
33ADD nginx.conf /etc/nginx/conf.d/default.conf
44ADD 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
88RUN 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 /*
Original file line number Diff line number Diff line change 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
77ADD 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
1111RUN 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 /*
You can’t perform that action at this time.
0 commit comments