File size: 534 Bytes
95a7280
5eb9e8b
95a7280
 
 
 
 
 
 
 
 
913f408
 
e2384ee
95a7280
913f408
95a7280
 
 
 
 
 
 
 
 
85df691
95a7280
 
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
# Builder stage
FROM python:3.10.0 as builder

RUN useradd -ms /bin/bash admin

WORKDIR /srv
RUN chown -R admin:admin /srv
RUN chmod 755 /srv



RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    aria2 ffmpeg

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

# Copy the application code
USER admin

COPY --chown=admin . /srv

# Command to run the application
CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 1
# Expose the server port
EXPOSE 7860