-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (19 loc) · 871 Bytes
/
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
FROM julia:1.6
# Install bzip. Required for installing MosekTools package
RUN apt update -y && apt install bzip2 -y
# Copy Julia Control barrier Package to Docker Image
COPY ./NeuralNetControlBarrier.jl /NeuralNetControlBarrier.jl
# Make run.bash executable
RUN chmod +x /NeuralNetControlBarrier.jl/run.bash
# Change the workdir to package root
WORKDIR NeuralNetControlBarrier.jl
# Precompile the Julia Package
RUN julia -e 'using Pkg;Pkg.activate("."); Pkg.instantiate(); Pkg.precompile()'
# Add Alias to run experiment
RUN echo 'alias runOptimization="/NeuralNetControlBarrier.jl/run.bash"' >> ~/.bashrc
# Add Mosek License file to Mosek Lib Dir
COPY licenseFile/mosek.lic /mosek/mosek.lic
# Add License Env variable
RUN echo 'export MOSEKLM_LICENSE_FILE="/mosek/mosek.lic"' >> ~/.bashrc
# Change Entrypoint to bash (Default: julia)
ENTRYPOINT ["bash"]