This commit is contained in:
parent
d669251515
commit
087a343ebc
5 changed files with 19 additions and 15 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue