File size: 557 Bytes
4d957e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11
RUN useradd -ms /bin/bash admin
RUN rm -rf /app/*
WORKDIR /app
COPY . /app
COPY requirement.txt ./requirements.txt
RUN apt-get update -y && apt-get upgrade -y \
    && apt-get install \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN pip3 install --no-cache-dir --upgrade --requirement requirements.txt
RUN chown -R admin:admin /app
RUN chmod 777 /app
#RUN chmod 664 /app
USER admin
EXPOSE 7860
#CMD ["uvicorn", "live:app", "--host", "0.0.0.0", "--port", "7860"]
#CMD ["bash", "start"]
CMD ["python","-u", "-m", "FileStream"]