-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 936 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (23 loc) · 936 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
29
30
31
32
33
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
OUTLINE_AGENT_CONFIG_PATH=/config/config.yaml
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl nodejs npm \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
COPY pyproject.toml uv.lock README.md package.json package-lock.json ./
COPY docker/puppeteer-mermaid.json ./docker/puppeteer-mermaid.json
COPY src ./src
RUN uv sync --frozen --no-dev \
&& npm ci --ignore-scripts \
&& .venv/bin/python -c "import outline_agent; print('ok')"
RUN mkdir -p /config /data \
&& useradd --create-home --shell /bin/bash appuser \
&& chown -R appuser:appuser /app /config /data
USER appuser
EXPOSE 8787
VOLUME ["/config", "/data"]
CMD ["/app/.venv/bin/outline-agent", "start", "--host", "0.0.0.0", "--port", "8787"]