File size: 511 Bytes
bd15962
82d2168
 
 
bd15962
 
 
 
 
 
 
432adc4
 
 
 
bd15962
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use official Python image
#FROM python:3.9
# Use official Python image (3.10 is required for Gemini)
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy project files
COPY . .

# Set environment variables for Hugging Face cache
ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
RUN mkdir -p $TRANSFORMERS_CACHE && chmod -R 777 $TRANSFORMERS_CACHE

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

# Expose port
EXPOSE 7860

# Run the application
CMD ["python", "app.py"]