-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
46 lines (36 loc) · 924 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM python:3.9-slim-buster
LABEL Tyler Sutterley "[email protected]"
ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"
RUN useradd --create-home --shell /bin/bash gravity
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
ca-certificates \
git \
libgeos-dev \
libhdf5-dev \
libnetcdf-dev \
libproj-dev \
libxml2-dev \
libxslt1-dev \
openssl \
proj-data \
proj-bin && \
apt-get clean
WORKDIR /home/gravity
RUN pip3 install --no-cache-dir --no-binary=cartopy \
cartopy \
future \
geoid-toolkit \
h5py \
lxml \
matplotlib \
netCDF4 \
numpy \
python-dateutil \
pyyaml \
scipy
COPY . .
RUN --mount=source=.git,target=.git,type=bind \
pip install --no-cache-dir --no-deps .
USER gravity
CMD ["bash"]