-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 865 Bytes
/
Dockerfile
File metadata and controls
23 lines (19 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:20.04
# Use --build-arg #.#.# when building to use other version
ARG JAVA_MAJOR_VERSION=11
ARG ORBDETPY_VERSION=2.1.0
# Install orbdetpy dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openjdk-${JAVA_MAJOR_VERSION}-jdk software-properties-common python3-pip python3-venv wget && \
add-apt-repository ppa:deadsnakes/ppa
# Install orbdetpy into virtual environment and update orekit-data
RUN cd && \
python3 -m venv env_orbdetpy && \
. env_orbdetpy/bin/activate && \
pip install orbdetpy==${ORBDETPY_VERSION} ipython && \
python -c "from orbdetpy.astro_data import update_data; update_data();"
RUN cd && \
wget -qO- https://github.com/ut-astria/orbdetpy/archive/refs/tags/${ORBDETPY_VERSION}.tar.gz | \
tar -xvz -C /root/ && \
mv orbdet* orbdetpy