sms-handler/Containerfile

23 lines
772 B
Text
Raw Permalink Normal View History

2024-12-05 14:59:03 +01:00
# Build: podman build -t code.philo.ydns.eu/philorg/sms-handler -f Containerfile
2024-12-01 00:53:31 +01:00
2025-06-27 03:04:42 +02:00
FROM docker.io/python:alpine
2024-12-01 00:53:31 +01:00
ENV PORT=8025
ENV LISTEN_ADDR=0.0.0.0
ENV SMS_HANDLER_MAIL_SERVER=host.containers.internal
2025-06-27 03:04:42 +02:00
COPY . /app
ENV UV_LINK_MODE=copy
WORKDIR /app
# Sync the project into a new environment, using the frozen lockfile
RUN \
--mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/local/bin/uv,target=/bin/uv \
--mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/lib/libpcre2-8.so.0,target=/usr/lib/libpcre2-8.so.0 \
--mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/bin/git,target=/usr/bin/git \
--mount=type=cache,target=/root/.cache/uv \
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}