File size: 533 Bytes
358f986
ae7f27e
ff13394
358f986
ae7f27e
ff13394
358f986
ae7f27e
ff13394
358f986
 
 
 
 
 
ae7f27e
ff13394
 
ae7f27e
ff13394
 
ae7f27e
97a01a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Base image with Python
FROM python:3.9-slim

# Set working directory
WORKDIR /app

# Copy everything into the container
COPY . /app

# Set Hugging Face cache location
ENV HF_HOME=/app/cache

# Create cache directory with safe permissions
RUN mkdir -p /app/cache && chmod -R 777 /app/cache

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Expose port 7860 (default port for Flask app)
EXPOSE 7860

# Run app.py when the container launches
CMD ["python", "server.py"]