2015-09-05 20:37:34 -07:00
|
|
|
FROM ubuntu:trusty
|
|
|
|
|
2016-10-25 22:51:42 -07:00
|
|
|
ADD start /start
|
|
|
|
|
2017-07-20 15:43:58 -07:00
|
|
|
RUN chmod +x /start && \
|
|
|
|
locale-gen en_US en_US.UTF-8 && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y apt-transport-https curl && \
|
|
|
|
curl https://repo.varnish-cache.org/ubuntu/GPG-key.txt | apt-key add - && \
|
|
|
|
echo "deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list && \
|
|
|
|
apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y varnish && \
|
|
|
|
rm /etc/varnish/secret
|
2015-09-05 20:37:34 -07:00
|
|
|
|
|
|
|
WORKDIR /etc/varnish
|
2016-10-25 21:44:32 -07:00
|
|
|
|
2016-10-25 22:51:42 -07:00
|
|
|
ENTRYPOINT ["/start"]
|
2015-09-05 20:37:34 -07:00
|
|
|
|
|
|
|
EXPOSE 80 6082
|