forked from DanCunnington/NSIL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (36 loc) · 1.48 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
FROM ubuntu:22.04
# Set timezone
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
# Install dependencies
RUN apt-get update
RUN apt-get -y install g++ build-essential cmake
RUN apt-get -y install flex bison
RUN apt-get -y install libboost-dev libboost-regex-dev libboost-program-options-dev
RUN apt-get -y install git wget gringo unzip software-properties-common curl
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get -y install python3.8
RUN apt-get -y install python3.9-dev
RUN apt-get -y install python3-pip
RUN apt-get install -y libjpeg-dev zlib1g-dev
RUN ln -s /usr/bin/python3 /usr/bin/python
# Copy NSIL code
WORKDIR NSIL
COPY . .
# Run NSIL setup
RUN pip3 install --upgrade pip setuptools wheel
RUN pip3 install -r requirements.txt
RUN chmod +x ./download_data.sh
RUN ./download_data.sh
RUN mv paper_experiments/ijcai_2023/scripts/container_setup.sh paper_experiments/ijcai_2023/scripts/setup.sh
RUN cp paper_experiments/ijcai_2023/scripts/setup.sh paper_experiments/ijcai_2023/scripts/naive_baselines/setup.sh
RUN find paper_experiments/ijcai_2023/scripts -type f -exec chmod +x {} \;
RUN find paper_experiments/ijcai_2023/scripts/naive_baselines -type f -exec chmod +x {} \;
RUN mv LAS_binaries/ILASP_ubuntu ILASP
RUN mv LAS_binaries/FastLAS_ubuntu FastLAS
ENV PYTHONPATH=/NSIL
# Start web servers
WORKDIR /NSIL/paper_experiments/ijcai_2023
EXPOSE 8000
EXPOSE 9990
RUN chmod +x ./start_web_servers.sh
CMD ["./start_web_servers.sh"]