yomna-ashraf commited on
Commit
afe4329
·
verified ·
1 Parent(s): e299395

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,13 +1,14 @@
1
  FROM python:3.10-slim
2
 
3
- WORKDIR /code
4
 
5
- COPY requirements.txt .
6
 
7
- RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- COPY . .
 
10
 
11
- EXPOSE 5000
12
 
13
- CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ WORKDIR /app # Set the working directory in the container
4
 
5
+ COPY requirements.txt ./ # Copy the requirements file
6
 
7
+ RUN pip install --no-cache-dir -r requirements.txt # Install dependencies
8
 
9
+ # Clear Hugging Face cache
10
+ RUN rm -rf /root/.cache/huggingface
11
 
12
+ COPY app.py ./ # Copy your Flask app
13
 
14
+ CMD ["python", "app.py"] # Command to run your Flask app