-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (36 loc) · 902 Bytes
/
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
54
55
56
57
58
59
60
FROM debian:bullseye
### # # ###
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y \
gcc \
make \
libssl-dev \
libz-dev \
libcrypt1:i386 \
libcrypt-dev:i386 \
&& apt-get clean
### # # ###
RUN mkdir /tmp/cern-httpd-2/
RUN mkdir /opt/cern-httpd/
### # # ###
COPY ./conf/httpd.conf /etc/httpd.conf
COPY ./www /var/www
COPY ./deps/cern-httpd-3.0A.tar.gz /tmp/cern-httpd-2/cern-httpd-3.0A.tar.gz
COPY ./patch /tmp/cern-httpd-2/patch
### # # ###
RUN tar -xvf /tmp/cern-httpd-2/cern-httpd-3.0A.tar.gz -C /opt/cern-httpd
### # APPLY PATCH # ###
RUN cp -r /tmp/cern-httpd-2/patch/* /opt/cern-httpd
### # # ###
RUN chmod +x /opt/cern-httpd/BUILD.SH
### # # ###
WORKDIR /opt/cern-httpd
RUN ./BUILD.SH
WORKDIR /
### # # ###
RUN rm -rf /tmp/cern-httpd-2
### # # ###
EXPOSE 80
### # # ###
CMD ["/opt/cern-httpd/Daemon/linux/httpd", "-v"]