@@ -3,18 +3,22 @@ FROM python:3.10.12-slim
3
3
4
4
5
5
# Install system dependencies required for psycopg2 and wget
6
- RUN apt-get update && apt-get install -y libpq-dev gcc wget curl && \
7
- rm -rf /var/lib/apt/lists/*
6
+ RUN apt-get update && apt-get install -y libpq-dev gcc wget curl coreutils gdal-bin libgdal-dev g++ && \
7
+ rm -rf /var/lib/apt/lists/*
8
8
9
9
# Install Miniconda
10
10
ENV MINICONDA_VERSION=py310_24.1.2-0
11
+ ARG MINICONDA_ARCH
12
+
13
+ # Typical x86 build env
14
+ # ENV MINICONDA_ARCH=Linux-x86_64
11
15
ENV CONDA_DIR=/opt/conda
12
16
ENV PATH=$CONDA_DIR/bin:$PATH
13
17
14
- RUN wget https://repo.anaconda.com/miniconda/Miniconda3-$MINICONDA_VERSION-Linux-x86_64 .sh \
15
- && mkdir -p $CONDA_DIR \
16
- && sh Miniconda3-$MINICONDA_VERSION-Linux-x86_64 .sh -b -u -p $CONDA_DIR \
17
- && rm -f Miniconda3-$MINICONDA_VERSION-Linux-x86_64.sh
18
+ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-$MINICONDA_VERSION-$MINICONDA_ARCH .sh \
19
+ && mkdir -p $CONDA_DIR \
20
+ && sh Miniconda3-$MINICONDA_VERSION-$MINICONDA_ARCH .sh -b -u -p $CONDA_DIR \
21
+ && rm -f Miniconda3-$MINICONDA_VERSION-$MINICONDA_ARCH.
18
22
19
23
# Install cfgrib and eccodes using Conda, this is somewhat redudant,
20
24
# but the only way the cfgrib library installs correctly for xarray that I've found
@@ -31,7 +35,7 @@ ENV PYTHONPATH /usr/src/app
31
35
COPY pyproject.toml poetry.lock ./
32
36
33
37
RUN poetry config virtualenvs.create false \
34
- && poetry install --no-interaction --no-ansi
38
+ && poetry install --no-interaction --no-ansi
35
39
36
40
COPY . .
37
41
0 commit comments