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"]