treetrail-backend/Containerfile.for_runner
phil 114201d561
Some checks failed
/ build (push) Failing after 15s
Add playbook for building the images
2024-10-30 02:07:05 +01:00

15 lines
555 B
Text

# FIXME: do not use hardcoded registry
FROM tiptop:5000/trixie_python
WORKDIR /app
ENV PYTHONPATH $UV_PROJECT_ENVIRONMENT/lib/python3.12/site-packages
COPY --from=tiptop:5000/treetrail_backend_deps /app /app
#COPY --from=tiptop:5000/treetrail_backend_deps /var/lib/treetrail/ /var/lib/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"]