File size: 477 Bytes
d0e4650
 
 
 
 
 
6159b71
d0e4650
 
6159b71
cff6c69
6159b71
b4b2475
6159b71
 
 
 
 
 
7154df8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9-slim

WORKDIR /app

COPY . .

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

# Create uploads directory and feedback.json with proper permissions
RUN mkdir -p static/uploads static/audio && \
    touch feedback.json && \
    chmod -R 777 static && \
    chmod 666 feedback.json

# Run as non-root user for security
RUN adduser --disabled-password --gecos '' appuser
USER appuser

CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]