forked from onediocom/docker-base-varnish
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
53 lines (44 loc) · 1.58 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM ubuntu:14.04
RUN apt-get update -y && \
apt-get install -y apt-transport-https curl git build-essential autoconf automake1.1 autotools-dev groff-base make libedit-dev libncurses-dev libpcre3-dev libtool pkg-config python-docutils libmhash-dev && \
curl https://repo.varnish-cache.org/ubuntu/GPG-key.txt | apt-key add - && \
echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list && \
apt-get update -y && apt-get install -y varnish libvarnishapi-dev
RUN cd /tmp && \
git clone https://github.com/varnish/libvmod-vsthrottle.git && \
cd libvmod-vsthrottle && \
git checkout 4.0 && \
./autogen.sh && \
./configure VARNISHSRC=/usr/include/varnish && \
make && \
make install
RUN cd /tmp && \
git clone https://github.com/varnish/libvmod-digest.git && \
cd libvmod-digest && \
git checkout 4.0 && \
./autogen.sh && \
./configure VARNISHSRC=/usr/include/varnish && \
make && \
make install
RUN cd /tmp && \
git clone https://github.com/varnish/libvmod-header.git && \
cd libvmod-header && \
git checkout 4.0 && \
./autogen.sh && \
./configure VARNISHSRC=/usr/include/varnish && \
make && \
make install
RUN cd /tmp && \
apt-get install -y libhiredis-dev && \
git clone https://github.com/carlosabalde/libvmod-redis.git && \
cd libvmod-redis && \
git checkout 4.0 && \
./autogen.sh && \
./configure VARNISHSRC=/usr/include/varnish && \
make && \
make install
ENV VARNISH_VCL /etc/varnish/default.vcl
ENV VARNISH_CACHE 200m
ADD start.sh /start.sh
EXPOSE 80
CMD ["sh", "/start.sh"]