treetrail-backend/Containerfile
phil 7105edecd1
All checks were successful
/ test (push) Successful in 25s
/ build (push) Successful in 27s
CI: build container from plain Python image
2025-03-16 14:14:39 +01:00

17 lines
382 B
Docker

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