2023-10-09 16:42:51 +02:00
|
|
|
FROM python:3.11-slim
|
2023-04-05 21:57:31 +02:00
|
|
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
2023-04-05 22:49:51 +02:00
|
|
|
LABEL org.opencontainers.image.source="https://github.com/luketainton/roboluke-tasks"
|
2023-04-05 21:57:31 +02:00
|
|
|
USER root
|
|
|
|
|
|
|
|
ENV PYTHONPATH="/run:/usr/local/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/site-packages:/usr/local/lib/python3.11"
|
|
|
|
WORKDIR /run
|
|
|
|
|
|
|
|
RUN mkdir -p /.local && \
|
|
|
|
chmod -R 777 /.local && \
|
2024-11-24 10:42:28 +01:00
|
|
|
pip install -U pip poetry
|
2023-04-05 21:57:31 +02:00
|
|
|
|
2024-11-24 10:42:28 +01:00
|
|
|
COPY pyproject.toml /run/pyproject.toml
|
|
|
|
COPY poetry.lock /run/poetry.lock
|
|
|
|
RUN poetry install --withouit dev --no-root
|
2023-04-05 21:57:31 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
|
|
|
|
|
2024-04-21 17:52:55 +02:00
|
|
|
ARG version="dev"
|
|
|
|
ENV APP_VERSION=$version
|
|
|
|
|
2023-04-05 21:57:31 +02:00
|
|
|
COPY app /run/app
|