sms-handler/Containerfile
phil e72f65ab8f
All checks were successful
/ test (push) Successful in 4s
Update Containerfile
2024-12-01 04:40:37 +00:00

14 lines
373 B
Docker

# Build: podman build -t sms-handler -f Containerfile
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}