forked from fgrehm/squid3-ssl-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.build
29 lines (23 loc) · 966 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
28
29
# Dockerfile.build
# Build debian packages for Squid3, with SSL enabled.
# http://www.squid-cache.org/
FROM ubuntu:trusty
MAINTAINER Fabio Rehm <fgrehm@gmail.com>
RUN echo "deb-src http://archive.ubuntu.com/ubuntu trusty main" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main" >> /etc/apt/sources.list
RUN echo "deb-src http://security.ubuntu.com/ubuntu trusty-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
RUN apt-get build-dep openssh -y
RUN apt-get build-dep openssl -y
# 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