File size: 586 Bytes
adcbb74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Base image
FROM python:3.11-slim

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    nginx supervisor && \
    rm -rf /var/lib/apt/lists/*

# Set workdir
WORKDIR /workspace

# Install Python dependencies
COPY requirements.txt /workspace/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copy application
COPY . /workspace

COPY supervisord.conf /workspace/supervisord.conf
COPY run.sh /workspace/run.sh
RUN chmod +x /workspace/run.sh

# Expose Space port
EXPOSE 7860

# Start supervisor
CMD ["/workspace/run.sh"]