File size: 344 Bytes
71cc10e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11-slim

WORKDIR /app

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

# Copy app
COPY app_deployment.py app.py

# Expose port
EXPOSE 7860

# Set environment
ENV PORT=7860
ENV PYTHONUNBUFFERED=1

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