@@ -6,12 +6,8 @@ ENV PYTHONUNBUFFERED=1 \
66 PIP_NO_CACHE_DIR=1 \
77 PIP_DISABLE_PIP_VERSION_CHECK=1 \
88 PIP_DEFAULT_TIMEOUT=100 \
9- # poetry:
10- POETRY_VERSION=1.8.3 \
11- POETRY_NO_INTERACTION=1 \
12- POETRY_VIRTUALENVS_CREATE=false \
13- POETRY_CACHE_DIR='/var/cache/pypoetry' \
14- POETRY_HOME='/usr/local' \
9+ # uv:
10+ UV_VERSION=0.7.15 \
1511 # pipx:
1612 PIPX_BIN_DIR=/opt/pipx/bin \
1713 PIPX_HOME=/opt/pipx/home \
@@ -22,23 +18,23 @@ ENV PYTHONUNBUFFERED=1 \
2218RUN apt-get update && apt-get install -y \
2319 default-jre \
2420 && python -m pip install --upgrade pip pipx \
25- && pipx install "poetry ==$POETRY_VERSION " \
26- && poetry --version \
21+ && pipx install "uv ==$UV_VERSION " \
22+ && uv --version \
2723 # Cleaning cache:
2824 && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
2925 && apt-get clean -y && rm -rf /var/lib/apt/lists/*
3026
3127WORKDIR /project/libecalc/
3228
33- COPY ./pyproject.toml ./poetry .lock ./
29+ COPY ./pyproject.toml ./uv .lock ./
3430
3531# Building all dependencies first to get a python environment we can use for dev
36- RUN python3 -m venv $VIRTUAL_ENV && poetry install --no-interaction --no-ansi --no-root
32+ RUN python3 -m venv $VIRTUAL_ENV && uv sync --locked
3733
3834FROM dev AS build
3935
4036COPY . .
41- RUN python3 -m venv $VIRTUAL_ENV && poetry install
37+ RUN python3 -m venv $VIRTUAL_ENV && uv sync --locked
4238
4339WORKDIR /project/libecalc/src/
4440
@@ -59,7 +55,7 @@ RUN mkdir /dist
5955RUN poetry version $ECALC_VERSION
6056
6157# Finally build the libecalc package
62- RUN poetry build
58+ RUN uv build
6359RUN cp dist/*.whl /dist/
6460RUN chown -R $ECALC_USER:$ECALC_GROUP /dist/
6561
0 commit comments