-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
39 lines (33 loc) · 897 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
FROM python:3.9-slim
MAINTAINER Daniel Lassahn <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux
RUN set -ex \
&& apt update \
&& apt install -y apt-transport-https curl
RUN set -ex \
&& buildDeps=' \
libnetcdf-dev \
libhdf5-dev \
build-essential \
libbz2-dev \
' \
&& apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends \
$buildDeps \
cdo \
curl \
libeccodes0 \
wget \
bzip2 \
\
&& apt-get remove -y $buildDeps \
&& apt-get autoremove -y
# Copy working dir, modulo .dockerignore'ed files.
COPY . /tmp
RUN pip install /tmp
# Purge /tmp directory.
RUN rm -r /tmp/*
RUN mkdir /var/spool/gribmagic
ENV GM_DATA_PATH "/var/spool/gribmagic"
ENV ECCODES_DEFINITION_PATH=/app/eccodes/definitions:/usr/share/eccodes/definitions