-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
FROM debian:stretch | ||
|
||
LABEL maintainer "[email protected]" | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get -y install apt-transport-https curl gnupg psmisc && \ | ||
curl -L https://packagecloud.io/varnishcache/varnish60/gpgkey | apt-key add - && \ | ||
touch /etc/apt/sources.list.d/varnishcache_varnish60.list && \ | ||
echo 'deb https://packagecloud.io/varnishcache/varnish60/debian/ stretch main' > /etc/apt/sources.list.d/varnishcache_varnish60.list && \ | ||
echo 'deb-src https://packagecloud.io/varnishcache/varnish60/debian/ stretch main' >> /etc/apt/sources.list.d/varnishcache_varnish60.list && \ | ||
apt-get update && \ | ||
apt-get -y install varnish=6.0.0-1~stretch && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
|
||
ADD start_varnishd.sh /start.sh | ||
|
||
ENV VARNISH_MALLOC '256m' | ||
ENV VARNISH_LOG 1 | ||
ENV VARNISH_LOG_FORMAT '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i" %{Varnish:hitmiss}x' | ||
|
||
RUN ln -sf /dev/stdout /var/log/varnish/access.log | ||
|
||
EXPOSE 80 6082 | ||
|
||
RUN chmod +x /start.sh | ||
# Start the varnishd | ||
ENTRYPOINT ["./start.sh"] | ||
FROM debian:stretch | ||
|
||
LABEL maintainer "[email protected]" | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get -y install apt-transport-https curl gnupg psmisc && \ | ||
curl -L https://packagecloud.io/varnishcache/varnish60/gpgkey | apt-key add - && \ | ||
touch /etc/apt/sources.list.d/varnishcache_varnish60.list && \ | ||
echo 'deb https://packagecloud.io/varnishcache/varnish60/debian/ stretch main' > /etc/apt/sources.list.d/varnishcache_varnish60.list && \ | ||
echo 'deb-src https://packagecloud.io/varnishcache/varnish60/debian/ stretch main' >> /etc/apt/sources.list.d/varnishcache_varnish60.list && \ | ||
apt-get update | ||
|
||
RUN \ | ||
apt-get -y install varnish=6.0.0-1~stretch && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
|
||
ADD start_varnishd.sh /start.sh | ||
|
||
ENV VARNISH_MALLOC '256m' | ||
ENV VARNISH_LOG 1 | ||
ENV VARNISH_LOG_FORMAT '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i" %{Varnish:hitmiss}x' | ||
|
||
RUN ln -sf /dev/stdout /var/log/varnish/access.log | ||
|
||
EXPOSE 80 6082 | ||
|
||
RUN chmod +x /start.sh | ||
# Start the varnishd | ||
ENTRYPOINT ["./start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters