Skip to content

Commit 9de8cd6

Browse files
committed
move nginx-envsubst.sh and change CMD in Dockerfile
1 parent 6af9b56 commit 9de8cd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mainline/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
138138

139139
COPY nginx.conf /etc/nginx/nginx.conf
140140
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
141-
COPY ../../nginx-envsubst.sh /usr/bin/nginx-envsubst
141+
COPY nginx-envsubst.sh /usr/bin/nginx-envsubst
142142

143143
EXPOSE 80
144144

145145
STOPSIGNAL SIGTERM
146146

147-
CMD ["nginx", "-g", "daemon off;"]
147+
CMD ["sh", "-c", "nginx-envsubst && exec nginx -g 'daemon off;'"]
File renamed without changes.

0 commit comments

Comments
 (0)