-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.api
More file actions
37 lines (29 loc) · 974 Bytes
/
Copy pathDockerfile.api
File metadata and controls
37 lines (29 loc) · 974 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
34
35
36
37
# ARIA Studio — FastAPI backend
FROM python:3.11-slim
WORKDIR /app
# System deps for collectors (lxml, xml parsing)
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libxml2-dev libxslt-dev curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source
COPY aria/ ./aria/
COPY missions/ ./missions/
# Non-root user for security
RUN useradd -m -u 1000 aria && chown -R aria:aria /app
USER aria
# Environment defaults (override in docker-compose or .env)
ENV ARIA_API_KEY=""
ENV ARIA_ALLOWED_ORIGINS="http://localhost,http://127.0.0.1"
ENV HOST="0.0.0.0"
ENV PORT="8765"
EXPOSE 8765
CMD ["python", "-m", "uvicorn", "aria.api.app:app", \
"--host", "0.0.0.0", "--port", "8765", \
"--workers", "1", \
"--timeout-keep-alive", "75", \
"--timeout-graceful-shutdown", "30", \
"--log-level", "warning", \
"--access-log"]