ayush2917 commited on
Commit
8f402e0
·
verified ·
1 Parent(s): 32013de

Update huggingface_docker/Dockerfile

Browse files
Files changed (1) hide show
  1. huggingface_docker/Dockerfile +8 -5
huggingface_docker/Dockerfile CHANGED
@@ -1,14 +1,17 @@
 
1
  FROM python:3.9-slim
2
 
 
3
  WORKDIR /app
4
 
5
- COPY backend/ ./backend
6
- COPY static/ ./static
7
- COPY templates/ ./templates
8
- COPY huggingface_docker/requirements.txt .
9
 
10
- RUN pip install -r requirements.txt
 
11
 
 
12
  EXPOSE 5000
13
 
 
14
  CMD ["python", "backend/app.py"]
 
1
+ # Use a Python base image
2
  FROM python:3.9-slim
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy all project files to the container
8
+ COPY . .
 
 
9
 
10
+ # Install Python dependencies
11
+ RUN pip install -r huggingface_docker/requirements.txt
12
 
13
+ # Expose the port Flask will run on (required by Hugging Face Spaces)
14
  EXPOSE 5000
15
 
16
+ # Run the Flask app
17
  CMD ["python", "backend/app.py"]