treetrail-backend/Containerfile

18 lines
382 B
Text
Raw Normal View History

FROM docker.io/library/python:latest
2024-10-27 02:09:13 +02:00
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
2024-10-27 02:09:13 +02:00
COPY . /app
2024-10-27 02:09:13 +02:00
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /app
2024-10-23 16:19:51 +02:00
RUN uv pip install --system .
2024-10-27 02:09:13 +02:00
CMD [ \
"uvicorn", "treetrail.application:app", \
"--port", "8081", \
#"--log-config", "/app/config/logging.yaml", \
"--host", "0.0.0.0" \
]