sms-handler/Containerfile
phil 12d071075d
Some checks failed
/ test (push) Failing after 13s
Update base url for doc and container
2024-12-05 14:59:03 +01:00

14 lines
409 B
Docker

# Build: podman build -t code.philo.ydns.eu/philorg/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 && uv pip install --system .
CMD sms-handler --port ${PORT} --host ${LISTEN_ADDR}