webexmemebot/Dockerfile

29 lines
633 B
Docker
Raw Normal View History

FROM python:3.13-slim
2023-07-21 22:57:14 +01:00
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
USER root
ENV PYTHONPATH="/run:/usr/local/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/site-packages:/usr/local/lib/python3.13"
2025-01-03 18:12:11 +00:00
ENV UV_PROJECT_ENVIRONMENT="/usr/local/"
2023-07-21 22:57:14 +01:00
WORKDIR /run
COPY imp.py /run/imp.py
2023-07-21 22:57:14 +01:00
RUN mkdir -p /.local && \
chmod -R 777 /.local && \
2025-01-03 18:12:11 +00:00
pip install -U pip uv==0.5.14
2023-07-21 22:57:14 +01:00
2024-11-28 20:54:12 +00:00
COPY pyproject.toml /run/pyproject.toml
2025-01-03 18:12:11 +00:00
COPY uv.lock /run/uv.lock
# needed for PDM build
COPY README.md /run/README.md
2024-11-28 20:54:12 +00:00
2025-01-03 18:12:11 +00:00
RUN uv sync --frozen
2023-07-21 22:57:14 +01:00
2023-12-14 20:55:17 +00:00
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
2023-07-21 22:57:14 +01:00
2024-04-21 17:20:58 +01:00
ARG version="dev"
ENV APP_VERSION=$version
2023-12-14 20:55:17 +00:00
COPY app /run/app