-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (23 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
36 lines (23 loc) · 1.01 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 debian:stretch
LABEL maintainer "d.h.bowes@herts.ac.uk"
RUN apt-get update && \
apt-get -qy install apache2 php libapache2-mod-php php-mcrypt\
php-cli octave nodejs dos2unix\
git python3 build-essential openjdk-8-jre openjdk-8-jdk python3-pip\
fp-compiler pylint acl sudo groovy
RUN pylint --reports=no --generate-rcfile > /etc/pylintrc
# Manually set up the apache environment variables
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
RUN cd /var/www/html && sudo git clone -b comqdhb https://github.com/comqdhb/jobe.git && apache2ctl start && cd jobe && sudo ./install
#RUN chmod o-r /var/www/html/jobe && chmod o-r /var/www/html && chmod o-r /home/jobe
# Expose apache.
EXPOSE 80
COPY rootpassword /root/
RUN cat /root/rootpassword | chpasswd && rm /root/rootpassword
#WORKDIR /home/jobe/
CMD ["apachectl", "-D", "FOREGROUND"]
#ENTRYPOINT ["apachectl"]