fix(docker): switch to uv
All checks were successful
Enforce Conventional Commit PR Title / Validate PR Title (pull_request) Successful in 3s
CI / ci (pull_request) Successful in 1m36s
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 12s
Release / Build Docker Images (push) Successful in 2m27s
All checks were successful
Enforce Conventional Commit PR Title / Validate PR Title (pull_request) Successful in 3s
CI / ci (pull_request) Successful in 1m36s
Release / Manual Trigger Cleanup (push) Has been skipped
Release / Create Release (push) Successful in 12s
Release / Build Docker Images (push) Successful in 2m27s
This commit is contained in:
parent
66a842ea08
commit
b3244c3836
12
Dockerfile
12
Dockerfile
@ -1,22 +1,24 @@
|
||||
FROM python:3.13-slim
|
||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||
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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user