Version file added dynamically (workaround as uv does not have this feature yet)
Tag container image with playbook Importable module with python -m treetrail
This commit is contained in:
parent
2d0b788728
commit
1693662e75
11 changed files with 66 additions and 29 deletions
|
@ -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", \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue