File size: 567 Bytes
b6a1ea0
a85768b
affd814
 
 
 
a85768b
 
affd814
 
 
 
b6a1ea0
affd814
a85768b
affd814
b6a1ea0
a85768b
affd814
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10-slim

# Set environment variable for transformers cache
ENV TRANSFORMERS_CACHE=/app/.cache

# Create a working directory
WORKDIR /app

# Create the cache directory and ensure it has proper permissions
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache

# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application
COPY . .

# Command to run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]