Download Dockerfile from rock1110/LogParser: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/rock1110/LogParser/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rock1110/LogParser/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rock1110/LogParser/resolve/main/Dockerfile
464 Bytes
| # Use the official Python base image | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy your code and requirements into the container | |
| COPY requirements.txt ./ | |
| COPY app.py ./ | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the default Streamlit port | |
| EXPOSE 8501 | |
| # Run your Streamlit app | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |