sms-handler/Containerfile

15 lines
411 B
Text
Raw Normal View History

2024-12-05 05:45:08 +01:00
# Build: podman build -t registry.philo.ydns.eu/philo/sms-handler -f Containerfile
2024-12-01 00:53:31 +01:00
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
2024-12-05 05:41:57 +01:00
RUN uv sync --frozen --no-cache && uv pip install --system .
2024-12-01 00:53:31 +01:00
2024-12-05 05:41:57 +01:00
CMD sms-handler --port ${PORT} --host ${LISTEN_ADDR}