forked from FRCTeam1073-TheForceTeam/viper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (41 loc) · 1.19 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
FROM httpd:2.4
# When changing this list of installed software
# PLEASE ALSO UPDATE the similar list in software-install.sh
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
git \
imagemagick \
libdbd-mysql-perl \
libcgi-pm-perl \
libdbi-perl \
libfile-flock-perl \
libfile-slurp-perl \
libfile-touch-perl \
libhtml-escape-perl \
libjpeg-turbo-progs \
libjson-pp-perl \
libmime-base64-perl \
libwww-perl \
perl \
simple-revision-control \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \
;
# Adjust Apache configuration
RUN sed -E -i '\
s/\#\s*(LoadModule .*mod_cgi)/\1/g; \
s/\#\s*(LoadModule .*mod_rewrite)/\1/g; \
s/^(\s*AllowOverride) None/\1 All\nSetEnv DEBUG 1/g; \
s|/htdocs|/htdocs/www|g \
' conf/httpd.conf \
&& mkdir -p /usr/local/apache2/htdocs/www \
;
# docker build -t webscout-image .
# docker run -d -p 1073:80 --name webscout-container -v `pwd`:/usr/local/apache2/htdocs webscout-image
# Visit: http://localhost:1073/
# docker exec -it webscout-container bash
# docker logs webscout-container --follow
# docker container stop webscout-container
# docker container rm webscout-container