-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·31 lines (23 loc) · 971 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·31 lines (23 loc) · 971 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
# syntax=docker/dockerfile:1.6
# -----------------------------------------------------------------------------
# Argus bridge + dashboard image.
# Ollama runs in a sibling container (see docker-compose.yml). This image
# bundles only the Python pieces and connects to Ollama over the compose
# network.
# -----------------------------------------------------------------------------
FROM python:3.11-slim AS base
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
# Security: run as non-root.
RUN useradd -r -u 10001 -s /usr/sbin/nologin argus
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY . .
RUN mkdir -p logs storage && chown -R argus:argus /app
USER argus
# Bridge is the default entry point; dashboard is run by docker-compose as
# a separate service sharing the same volume.
EXPOSE 8765
CMD ["uvicorn", "llm_bridge.bridge:app", "--host", "0.0.0.0", "--port", "8765"]