File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,16 +7,12 @@ ENV PROJ_LIB=/opt/conda/share/proj
77# set api as the current work dir
88WORKDIR /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
You can’t perform that action at this time.
0 commit comments