gisaf-backend/Containerfile
phil a3a2efe471
All checks were successful
/ test (push) Successful in 31s
/ build (push) Successful in 32s
Use dynamic versioning
2025-03-16 19:02:10 +01:00

17 lines
487 B
Docker

# 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}