-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 733 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.12-alpine AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /build
ADD . /build
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-dev --locked --no-editable
FROM builder
RUN addgroup -g 1000 apprise \
&& adduser -u 1000 -G apprise -s /bin/bash -D apprise
WORKDIR /apprise/app
COPY config config/
COPY --from=builder /build/.venv .venv/
COPY apprise_webhook_bridge apprise_webhook_bridge/
RUN chown -R apprise:apprise /apprise
USER apprise
ENV APPRISE_CONFIG_DIR="/apprise/config"
EXPOSE 8001
CMD ["/apprise/app/.venv/bin/uvicorn", "apprise_webhook_bridge.main:app", "--host", "0.0.0.0", "--port", "8001", "--proxy-headers", "--log-config", "config/log_config.yaml"]