Skip to content

Commit 64baed7

Browse files
committed
fix merge issues
2 parents 4d30614 + 6f72502 commit 64baed7

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

backend/backend.dockerfile

+11-7
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@ FROM python:3.10.12-slim
33

44

55
# 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/*
88

99
# Install Miniconda
1010
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
1115
ENV CONDA_DIR=/opt/conda
1216
ENV PATH=$CONDA_DIR/bin:$PATH
1317

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.
1822

1923
# Install cfgrib and eccodes using Conda, this is somewhat redudant,
2024
# but the only way the cfgrib library installs correctly for xarray that I've found
@@ -31,7 +35,7 @@ ENV PYTHONPATH /usr/src/app
3135
COPY pyproject.toml poetry.lock ./
3236

3337
RUN poetry config virtualenvs.create false \
34-
&& poetry install --no-interaction --no-ansi
38+
&& poetry install --no-interaction --no-ansi
3539

3640
COPY . .
3741

docker-compose.prod.yml

+3
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,11 @@ services:
120120
build:
121121
context: ./backend
122122
dockerfile: backend.dockerfile
123+
args:
124+
MINICONDA_ARCH: Linux-x86_64
123125
env_file:
124126
- .env.prod
127+
125128
command: sh -c "uvicorn app.main:app --host 0.0.0.0 --port 8000"
126129
volumes:
127130
- ./backend:/usr/src/app

docker-compose.yml

+3
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ services:
113113
build:
114114
context: ./backend
115115
dockerfile: backend.dockerfile
116+
args:
117+
MINICONDA_ARCH: Linux-aarch64
118+
# MINICONDA_ARCH: Linux-x86_64 # Enable for local dev on non-ARM
116119
env_file:
117120
- .env
118121
command: sh -c "uvicorn app.main:app --host 0.0.0.0 --port 8000"

0 commit comments

Comments
 (0)