-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (26 loc) · 1.27 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
FROM ubuntu:18.04
ENV TZ Europe/Paris
LABEL maintainer="Erwin Lejeune <erwin.lejeune15@gmail.com>"
LABEL maintainer2="Sampreet Sarkar <sampreet.sarkar@gmail.com>"
RUN apt-get update -y && \
apt-get install -y python3 && \
apt-get install -y python3-pip && \
apt-get install -y wget && \
apt-get install -y git && \
python3 -m pip install --upgrade pip
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.2-linux-x86_64.tar.gz
RUN tar -xvzf julia-1.5.2-linux-x86_64.tar.gz
RUN cp -r julia-1.5.2 /opt/
RUN ln -s /opt/julia-1.5.2/bin/julia /usr/local/bin/julia
RUN julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/APLA-Toolbox/PDDL.jl"))'
RUN julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/JuliaPy/PyCall.jl"))'
RUN cd /
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/APLA-Toolbox/PDDL.jl"))'
RUN julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/JuliaPy/PyCall.jl"))'
WORKDIR /pythonpddl
COPY requirements.txt /.
RUN python3 -m pip install -r /requirements.txt
COPY docker/entrypoint.sh /.
EXPOSE 8080
ENTRYPOINT [ "/entrypoint.sh" ]