-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (24 loc) · 1.19 KB
/
Copy pathDockerfile
File metadata and controls
36 lines (24 loc) · 1.19 KB
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
FROM httpd:2.4
RUN apt-get update
RUN apt-get -y install make wget libssl-dev apache2-dev
RUN apt-get install -y procps
RUN apt-get install -y vim
#COMPILING MODULE
COPY ./ApacheDome ./DataDome-ApacheDome
RUN make -C ./DataDome-ApacheDome prepare
RUN make -C ./DataDome-ApacheDome
RUN make -C ./DataDome-ApacheDome install
# Activate mod_ssl for DataDome
RUN sed -i 's/#LoadModule ssl_module modules\/mod_ssl.so/LoadModule ssl_module modules\/mod_ssl.so/g' /usr/local/apache2/conf/httpd.conf
# If you want use the config file from the root directory
COPY ./config/mod_datadome.conf /usr/local/apache2/conf/extra/
# else you want to use the default configuration file ...
#RUN cp DataDome-ApacheDome*/docs/mod_datadome.conf /usr/local/apache2/conf/extra/
# Switch to variable env for DATADOME Key
#RUN sed -i 's/"SETYOURDATADOMEKEY"/\$\{DATADOME_KEY\}/g' /usr/local/apache2/conf/extra/mod_datadome.conf
RUN echo 'Include conf/extra/mod_datadome.conf' >> /usr/local/apache2/conf/httpd.conf
# If you need to configure your httpd.conf
#using in to add Datadome logs in DEV
COPY ./config/my-httpd.conf /usr/local/apache2/conf/httpd.conf
# If you need to upload an app
#COPY ./webcontent/ /usr/local/apache2/htdocs/