Spaces:
Running
Running
File size: 477 Bytes
9f9843c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.11.6
WORKDIR /app
COPY requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
RUN pip install streamlit==1.24.0
USER root
RUN chmod -R 777 /app
RUN chown -R root:root /app
ENV STREAMLIT_SERVER_ENABLECORS=false
RUN mkdir -p /tmp/cache/
RUN chmod a+rwx -R /tmp/cache/
RUN mkdir /uploads && chmod -R 777 /uploads
ENV TRANSFORMERS_CACHE=/tmp/cache/
EXPOSE 7860
COPY . /app
ENTRYPOINT ["streamlit", "run"]
CMD ["app.py", "--server.port", "7860"] |