-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 800 Bytes
/
Dockerfile
File metadata and controls
32 lines (26 loc) · 800 Bytes
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
# pull base image
FROM --platform=linux/amd64 ubuntu:jammy
# Install base utilities
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev wget \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 --no-cache-dir install --upgrade pip \
&& rm -rf /var/lib/apt/lists/*
# install prerequesites for ortools
RUN apt-get update && \
apt-get -y install --no-install-recommends \
openjdk-8-jre \
&& \
: "remove cache" && \
apt-get autoremove -y -qq && \
rm -rf /var/lib/apt/lists/*
# copy code
COPY . /ortools
WORKDIR /ortools
# install ortools
RUN pip install -e .
# get OR
RUN wget https://github.com/openrocket/openrocket/releases/download/release-15.03/OpenRocket-15.03.jar
# default command
CMD diana -c examples/dispersion_analysis.ini