Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +28 -27
Dockerfile
CHANGED
|
@@ -1,28 +1,29 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
-
|
| 3 |
-
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
# Install system dependencies
|
| 6 |
-
RUN apt-get update && apt-get install -y \
|
| 7 |
-
git \
|
| 8 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
-
|
| 10 |
-
# Copy requirements and install Python dependencies
|
| 11 |
-
COPY requirements.txt .
|
| 12 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
-
|
| 14 |
-
# Copy application files
|
| 15 |
-
COPY main.py .
|
| 16 |
-
COPY rag_engine.py .
|
| 17 |
-
COPY auth.py .
|
| 18 |
-
COPY hf_storage.py .
|
| 19 |
-
COPY
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
CMD ["./start.sh"]
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
# Install system dependencies
|
| 6 |
+
RUN apt-get update && apt-get install -y \
|
| 7 |
+
git \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
+
# Copy requirements and install Python dependencies
|
| 11 |
+
COPY requirements.txt .
|
| 12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
+
|
| 14 |
+
# Copy application files
|
| 15 |
+
COPY main.py .
|
| 16 |
+
COPY rag_engine.py .
|
| 17 |
+
COPY auth.py .
|
| 18 |
+
COPY hf_storage.py .
|
| 19 |
+
COPY user_management.py .
|
| 20 |
+
COPY start.sh .
|
| 21 |
+
|
| 22 |
+
# Make start script executable
|
| 23 |
+
RUN chmod +x start.sh
|
| 24 |
+
|
| 25 |
+
# Expose port 7860 (HF Spaces default)
|
| 26 |
+
EXPOSE 7860
|
| 27 |
+
|
| 28 |
+
# Run the FastAPI app
|
| 29 |
CMD ["./start.sh"]
|