Spaces:
Sleeping
Sleeping
| FROM python:3.9.18-slim-bullseye | |
| # Set the working directory to /app | |
| WORKDIR /app | |
| # install ffmpeg | |
| RUN apt-get update && apt-get -y upgrade | |
| # Create folders | |
| RUN mkdir /app/data | |
| RUN mkdir /app/.streamlit | |
| # Copy the current directory contents into the container at /app | |
| COPY requirements.txt /app/requirements.txt | |
| COPY .streamlit/config.toml /app/.streamlit/config.toml | |
| COPY streamlit_app.py /app | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --upgrade pip | |
| # RUN pip install manimpango | |
| RUN pip install -r requirements.txt | |
| # Make port 8502 available to the world outside this container | |
| EXPOSE 8502 | |
| # Run app.py when the container launches | |
| CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "8502","> dev/null"] | |