Spaces:
Running
Running
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"] |