From b3244c38366346bf9d8db05166baea532754ae4e Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Fri, 3 Jan 2025 18:12:11 +0000 Subject: [PATCH] fix(docker): switch to uv --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1487a05..385b1ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,24 @@ FROM python:3.13-slim LABEL maintainer="Luke Tainton " -LABEL org.opencontainers.image.source="https://github.com/luketainton/webexmemebot" USER root ENV PYTHONPATH="/run:/usr/local/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/site-packages:/usr/local/lib/python3.13" +ENV UV_PROJECT_ENVIRONMENT="/usr/local/" + WORKDIR /run COPY imp.py /run/imp.py RUN mkdir -p /.local && \ chmod -R 777 /.local && \ - pip install -U pip poetry + pip install -U pip uv==0.5.14 COPY pyproject.toml /run/pyproject.toml -COPY poetry.lock /run/poetry.lock +COPY uv.lock /run/uv.lock +# needed for PDM build +COPY README.md /run/README.md -RUN poetry config virtualenvs.create false && \ - poetry install --without dev +RUN uv sync --frozen ENTRYPOINT ["python3", "-B", "-m", "app.main"]