-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile.build
27 lines (21 loc) · 909 Bytes
/
Dockerfile.build
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
# Dockerfile.build
# Build debian packages for Squid3, with SSL enabled.
# http://www.squid-cache.org/
FROM stackbrew/ubuntu:saucy
MAINTAINER Tom Offermann <[email protected]>
RUN echo "deb-src http://archive.ubuntu.com/ubuntu saucy main" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ saucy-updates main" >> /etc/apt/sources.list
RUN echo "deb-src http://security.ubuntu.com/ubuntu saucy-security main" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y upgrade
# Install build dependencies
RUN apt-get -y install libssl-dev
RUN apt-get -y build-dep squid3
# Download source
RUN mkdir /src
RUN cd /src && apt-get source squid3
# Edit debian/rules to build with SSL
RUN sed -i 's/--enable-ecap/--enable-ecap --enable-ssl --enable-ssl-crtd/' /src/squid3-3.3.8/debian/rules
# Build debs
RUN apt-get -y install devscripts
RUN cd /src/squid3-3.3.8 && debuild -us -uc -b