Fix and doc container
All checks were successful
/ test (push) Successful in 5s

This commit is contained in:
phil 2024-12-05 05:41:57 +01:00
parent d669251515
commit 087a343ebc
5 changed files with 19 additions and 15 deletions

View file

@ -1,4 +1,4 @@
# Build: podman build -t sms-handler -f Containerfile
# Build: podman build -t registry.philo.ydns.eu/philo/sms_handler -f Containerfile
FROM docker.io/python:3.12-alpine
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/
@ -9,6 +9,6 @@ ENV SMS_HANDLER_MAIL_SERVER=host.containers.internal
COPY . /src
WORKDIR /src
RUN uv sync --frozen --no-cache
RUN uv sync --frozen --no-cache && uv pip install --system .
CMD .venv/bin/fastapi run server.py --port ${PORT} --host ${LISTEN_ADDR}
CMD sms-handler --port ${PORT} --host ${LISTEN_ADDR}