sms-handler/Containerfile
2024-12-01 00:53:31 +01:00

14 lines
389 B
Docker

# Build: podman build -t treetrail-backend-base -f Containerfile.base
FROM docker.io/python:3.12-alpine
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/
ENV PORT=8025
ENV LISTEN_ADDR=0.0.0.0
ENV SMS_HANDLER_MAIL_SERVER=host.containers.internal
COPY . /src
WORKDIR /src
RUN uv sync --frozen --no-cache
CMD .venv/bin/fastapi run server.py --port ${PORT} --host ${LISTEN_ADDR}