Spaces:
Runtime error
Runtime error
Download Dockerfile from Srinivas1969/predictive-maintenance-engine: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/spaces/Srinivas1969/predictive-maintenance-engine/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Srinivas1969/predictive-maintenance-engine/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Srinivas1969/predictive-maintenance-engine/resolve/main/Dockerfile
541 Bytes
| # Use the official Streamlit image as a base or a Python image with Streamlit installed | |
| # For simplicity, we'll stick to python:3.9-slim and install Streamlit. | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY app.py . | |
| # Expose the port Streamlit runs on | |
| EXPOSE 8501 | |
| # Command to run the Streamlit application | |
| CMD ["streamlit", "run", "app.py"] | |