-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 910 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 910 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
# -----------------------------
# Multi-Agent-Study-Assistant
# Production Dockerfile
# -----------------------------
# Use a lightweight Python base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Prevent Python from writing .pyc files
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential curl git && \
rm -rf /var/lib/apt/lists/*
# Upgrade pip and core tooling
RUN pip install --upgrade pip setuptools wheel
# Copy dependency list and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app files
COPY . .
# Expose the default Streamlit / API port
EXPOSE 8501
# Default startup (edit if your entrypoint differs)
CMD ["streamlit", "run", "app.py", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false"]