# Build: podman build -t code.philo.ydns.eu/philorg/gisaf-backend -f Containerfile

FROM docker.io/library/python:latest

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
ENV GISAF__BACKEND__PORT 8898
ENV GISAF__BACKEND__BIND__ADDR 0.0.0.0

COPY . /app

# Sync the project into a new environment, using the frozen lockfile
WORKDIR /app

RUN uv pip install --system .


CMD uvicorn gisaf.application:app --port ${GISAF__BACKEND__PORT} --host ${GISAF__BACKEND__BIND__ADDR}