File size: 553 Bytes
d8549ef
 
142c849
 
 
 
 
 
 
 
 
 
d8549ef
4a54ffd
 
 
af0418f
4a54ffd
 
af0418f
4a54ffd
 
 
 
 
d8549ef
a3086ca
142c849
 
a2733f3
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
29
30
FROM rendyprojects/python:latest

 RUN apt -qq update
 RUN apt -qq install -y --no-install-recommends \
    curl \
    git \
    gnupg2 \
    unzip \
    wget \
    python3-pip \
    ffmpeg \
    neofetch

RUN useradd -m -u 1000 user

USER user

ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

COPY --chown=user . $HOME/app

RUN mkdir -p uploads && chmod 777 uploads

RUN pip3 install --upgrade pip setuptools==59.6.0
RUN pip3 install -r requirements.txt

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