Hamza4100 commited on
Commit
d399225
·
verified ·
1 Parent(s): ba63666

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 start.sh .
20
-
21
- # Make start script executable
22
- RUN chmod +x start.sh
23
-
24
- # Expose port 7860 (HF Spaces default)
25
- EXPOSE 7860
26
-
27
- # Run the FastAPI app
 
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"]