Version file added dynamically (workaround as uv does not have this feature yet)
All checks were successful
/ test (push) Successful in 17s
/ build (push) Successful in 19s

Tag container image with playbook
Importable module with python -m treetrail
This commit is contained in:
phil 2024-11-04 03:58:58 +01:00
parent 2d0b788728
commit 1693662e75
11 changed files with 66 additions and 29 deletions

View file

@ -3,6 +3,7 @@
FROM tiptop:5000/treetrail-backend-deps
ENV PYTHONPATH $UV_PROJECT_ENVIRONMENT/lib/python3.12/site-packages
ARG APP_VERSION=0.0.0
COPY . /src
@ -15,6 +16,8 @@ RUN uv pip install \
--no-deps \
/src
RUN echo $APP_VERSION > /app/version.txt
CMD [ \
"uvicorn", "treetrail.application:app", \
"--port", "8081", \