gisaf-backend/Containerfile

18 lines
487 B
Text
Raw Permalink Normal View History

2024-12-16 19:41:16 +01:00
# Build: podman build -t code.philo.ydns.eu/philorg/gisaf-backend -f Containerfile
2025-03-16 19:02:10 +01:00
FROM docker.io/library/python:latest
2024-12-16 19:41:16 +01:00
2025-03-16 19:02:10 +01:00
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
2024-12-16 19:41:16 +01:00
ENV GISAF__BACKEND__PORT 8898
ENV GISAF__BACKEND__BIND__ADDR 0.0.0.0
2025-03-16 19:02:10 +01:00
COPY . /app
2024-12-16 19:41:16 +01:00
2025-03-16 19:02:10 +01:00
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /app
RUN uv pip install --system .
2024-12-16 19:41:16 +01:00
CMD uvicorn gisaf.application:app --port ${GISAF__BACKEND__PORT} --host ${GISAF__BACKEND__BIND__ADDR}