Initial commit
This commit is contained in:
commit
f4cf78603a
25 changed files with 2895 additions and 0 deletions
12
Containerfile
Normal file
12
Containerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM localhost/trixie_python
|
||||
WORKDIR /usr/src/treetrail
|
||||
ENV PATH="/usr/src/treetrail/.venv/bin:$PATH"
|
||||
ENV PYTHONPATH="/usr/src"
|
||||
COPY --from=localhost/treetrail_backend_deps /usr/src/treetrail/.venv/ /usr/src/treetrail/.venv
|
||||
COPY --from=localhost/treetrail_backend_deps /usr/local/treetrail/ /usr/local/treetrail
|
||||
COPY ./treetrail ./pyproject.toml ./README.md .
|
||||
|
||||
# Instances should override the prod.yaml file
|
||||
COPY ./prod.yaml /etc/treetrail/prod.yaml
|
||||
|
||||
CMD ["uvicorn", "treetrail.application:app", "--port", "8081", "--log-config", "logging.yaml", "--host", "0.0.0.0"]
|
Loading…
Add table
Add a link
Reference in a new issue