-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
30 lines (23 loc) · 1 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
FROM ubuntu:24.04
ENV TZ=Etc/GMT
ENV DEBIAN_FRONTEND=noninteractive
EXPOSE 80
RUN apt-get update -y
RUN apt -y install \
apache2 apache2-doc php php-dev php-xml php-curl php-xdebug libapache2-mod-php \
python3 python-matplotlib-data \
openjdk-8-jdk ant \
sudo \
g++ gpac
#RUN curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
#RUN python3 get-pip.py
#RUN pip3 install matplotlib
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
# let apache sudo this one specific script which filters the access logs
RUN echo >> /etc/sudoers "www-data ALL=NOPASSWD: /var/www/html/Conformance-Frontend/src/get-access.sh"
RUN rm /var/www/html/index.html
COPY --chown=www-data:www-data . /var/www/html/
COPY --chown=www-data:www-data ISOSegmentValidator /var/www/html/ISOSegmentValidator
RUN cd /var/www/html/ISOSegmentValidator/public/linux && make clean && make -j
COPY --chown=www-data:www-data Conformance-Frontend /var/www/html/Conformance-Frontend
CMD apachectl -D FOREGROUND