File size: 548 Bytes
252d749
48934d3
252d749
 
73df4f2
79462ec
 
252d749
 
 
 
 
b2868c4
a771143
 
 
 
79108e4
73df4f2
fe58d2b
0a00c05
73df4f2
0e8e94c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Builder stage
FROM python:latest as builder

WORKDIR /srv

# Install dependencies and Python packages
RUN apt-get update && apt-get install -y git ffmpeg aria2 \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the application code
RUN useradd -m -u 1000 user
USER user

COPY --chown=user . /srv

# Command to run the application
CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 & celery -A App.Worker.celery worker -c 8 --loglevel=info

# Expose the server port
EXPOSE 7860