1
0
epfl_cs451/docker/Dockerfile

30 lines
933 B
Docker
Raw Normal View History

2020-09-15 10:56:10 +02:00
FROM ubuntu:18.04
# Update packages and setup timezone
RUN apt-get update && apt-get -y upgrade && \
apt-get -y install tzdata
ENV TZ=Europe/Zurich
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone
RUN dpkg-reconfigure --frontend=noninteractive tzdata
RUN apt-get -y install file unzip zip xz-utils git \
gcc g++ cmake default-jdk \
python3
ADD docker/apache-maven-3.6.3-bin.tar.gz /usr/local
RUN ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin
2020-11-13 17:40:09 +01:00
#COPY template_cpp /root/template_cpp
#COPY template_java /root/template_java
COPY 257844 /root/257844
2020-09-15 10:56:10 +02:00
ADD barrier.py /root
2020-11-13 17:40:09 +01:00
ADD finishedSignal.py /root
ADD validate.py /root
ADD bnr.sh /root
2020-09-15 10:56:10 +02:00
2020-11-13 17:40:09 +01:00
#RUN /root/template_cpp/build.sh && /root/template_cpp/cleanup.sh
#RUN /root/template_java/build.sh && /root/template_java/cleanup.sh
RUN /root/257844/build.sh && /root/257844/cleanup.sh