File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -169,15 +169,23 @@ RUN set -ex; \
169169 /etc/varnish/includes; \
170170 \
171171 mkdir -p /etc/init.d/; \
172- touch /etc/varnish/preset.vcl /etc/init.d/varnishd; \
173- chown varnish:varnish /etc/varnish/preset.vcl; \
172+ touch /etc/varnish/preset.vcl /etc/init.d/varnishd /etc/varnish/secret /etc/varnish/default.vcl; \
173+ chown varnish:varnish \
174+ /etc/varnish/preset.vcl \
175+ /etc/varnish/default.vcl \
176+ /etc/varnish/secret \
177+ /etc/init.d/varnishd \
178+ /etc/varnish/defaults \
179+ /etc/varnish/includes; \
174180 chmod +x /etc/init.d/varnishd; \
175181 \
176182 while IFS= read -r file ; do rm -rf -- "${file}" ; done < /tmp/varnish-dev-files; \
177183 apk del --purge .varnish-build-deps; \
178184 rm -rf /tmp/*; \
179185 rm -rf /var/cache/apk/*
180186
187+ USER varnish
188+
181189EXPOSE 6081 6082
182190
183191VOLUME /var/lib/varnish
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ if [[ -n "${DEBUG}" ]]; then
77fi
88
99exec varnishd \
10- -j unix,user=varnish \
1110 -F \
1211 -a :6081 \
1312 -T :6082 \
You can’t perform that action at this time.
0 commit comments