-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (24 loc) · 1008 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
29
30
31
32
FROM ubuntu:jammy
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update \
&& apt-get upgrade -y \
&& apt-get install libcurl4-openssl-dev libssl-dev git curl unzip python3.11 pip -y
# Install pyoorb from B612's fork, which includes a patch to handle fortran errors better
ENV OORB_TAG=v1.2.1a1.dev2
ENV OORB_VERSION="pyoorb-1.2.1a1.dev2+66b7753.dirty"
# Install oorb data
RUN curl -fL -o /tmp/oorb_data.zip \
"https://github.com/B612-Asteroid-Institute/oorb/releases/download/${OORB_TAG}/oorb_data.zip"
RUN unzip -d /opt/oorb_data /tmp/oorb_data.zip
ENV OORB_DATA=/opt/oorb_data
# Upgrade pip to the latest version
RUN pip install --upgrade pip
# Install hatch
RUN pip install hatch
# Install adam_core
ADD . /code/
WORKDIR /code
RUN apt-get update -y && apt-get install -y gfortran liblapack-dev
# Force installation of deps by running a command in the 'dev' environment
RUN hatch -v run dev:true