Skip to content

Commit 232d168

Browse files
author
rayaberova
committed
docker with uv
1 parent c82c709 commit 232d168

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ ENV PROJ_LIB=/opt/conda/share/proj
77
# set api as the current work dir
88
WORKDIR /api
99

10-
# copy the requirements list
11-
COPY requirements_app.txt requirements_app.txt
10+
# copy uv
11+
COPY pyproject.toml pyproject.toml
12+
COPY uv.lock uv.lock
1213

13-
# install all the requirements
14-
RUN sudo apt-get update &&\
15-
sudo apt-get install -y binutils libproj-dev gdal-bin ffmpeg libgdal-dev &&\
16-
uv pip install -r requirements_app.txt \
17-
--extra-index-url https://download.pytorch.org/whl/cu121 \
18-
--system && \
19-
uv pip install --no-build-isolation --no-cache-dir --force-reinstall gdal==$(gdal-config --version) --system &&\
14+
# install
15+
RUN uv sync && \
2016
wget -q -O /api/nuts_2021.gpkg https://minio.lab.sspcloud.fr/projet-hackathon-ntts-2025/NUTS_RG_01M_2021_4326_LEVL_3.gpkg
2117

2218
# copy the main code of fastapi

0 commit comments

Comments
 (0)