File size: 374 Bytes
6a3f33d
afe4329
1eacba7
afe4329
1eacba7
afe4329
1eacba7
afe4329
 
1eacba7
afe4329
055a46c
afe4329
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.8-slim
WORKDIR /app  # Set the working directory in the container

COPY requirements.txt ./  # Copy the requirements file

RUN pip install --no-cache-dir -r requirements.txt  # Install dependencies

# Clear Hugging Face cache
RUN rm -rf /root/.cache/huggingface

COPY app.py ./  # Copy your Flask app

CMD ["python", "app.py"]  # Command to run your Flask app