File size: 633 Bytes
0b7e92d
 
 
 
 
 
 
 
 
 
 
 
 
 
8182f99
 
0b7e92d
 
 
abe2e02
9813df4
0b7e92d
 
 
 
 
 
 
 
 
 
 
 
 
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
31
32
33
34
FROM python:latest

ENV PYTHONUNBUFFERED 1

EXPOSE 7860

RUN apt update

RUN apt install curl

RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -

RUN apt install nodejs

RUN apt --yes install libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0

RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH
    
WORKDIR $HOME/app

COPY --chown=user package*.json .

RUN npm install

COPY requirements.txt ./
RUN pip install --upgrade pip && \
    pip install -r requirements.txt

COPY --chown=user . .

CMD [ "npm", "run", "start" ]