File size: 542 Bytes
ff68197
 
0249eb6
d84d69a
0249eb6
 
ff68197
 
 
0249eb6
ff68197
 
96be39a
 
0249eb6
 
 
53430df
0249eb6
9d108c0
212db5b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy app source
COPY app.py .

# Clean and recreate the folder with full permissions
RUN rm -rf /app/batch_downloads && mkdir -p /app/batch_downloads && chmod -R 777 /app/batch_downloads

# Optional: ensure script has write permissions
RUN chmod -R 777 /app

# Run app with full permissions


EXPOSE 8000

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]