tekadevaibhav commited on
Commit
bc1f084
·
verified ·
1 Parent(s): 92fbd63

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -2,10 +2,12 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install gcc and build tools needed for llama-cpp-python
6
- RUN apt-get update && apt-get install -y --no-install-recommends curl gcc g++ make cmake && rm -rf /var/lib/apt/lists/*
 
 
7
 
8
- # Copy all project files into container
9
  COPY . .
10
 
11
  # Install backend dependencies
@@ -14,12 +16,12 @@ RUN pip install --no-cache-dir -r requirements.backend.txt
14
  # Install frontend dependencies
15
  RUN pip install --no-cache-dir -r requirements.frontend.txt
16
 
17
- # Expose Streamlit port (HuggingFace default) and FastAPI port
18
  EXPOSE 7860
19
  EXPOSE 8000
20
 
21
  # Make startup script executable
22
  RUN chmod +x /app/start.sh
23
 
24
- # Run the startup script which launches both services
25
  CMD ["/app/start.sh"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install curl only
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ curl \
8
+ && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Copy all project files
11
  COPY . .
12
 
13
  # Install backend dependencies
 
16
  # Install frontend dependencies
17
  RUN pip install --no-cache-dir -r requirements.frontend.txt
18
 
19
+ # Expose ports
20
  EXPOSE 7860
21
  EXPOSE 8000
22
 
23
  # Make startup script executable
24
  RUN chmod +x /app/start.sh
25
 
26
+ # Run startup script
27
  CMD ["/app/start.sh"]