Download Dockerfile from DavidRambeau/bloc3_Streamlit: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/spaces/DavidRambeau/bloc3_Streamlit/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DavidRambeau/bloc3_Streamlit/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DavidRambeau/bloc3_Streamlit/resolve/main/Dockerfile
650 Bytes
| FROM python:3.10-slim | |
| WORKDIR /home/app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends nano unzip curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . . | |
| RUN curl -fsSL https://get.deta.dev/cli.sh | sh | |
| RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
| RUN unzip awscliv2.zip | |
| RUN ./aws/install | |
| COPY requirements.txt /dependencies/requirements.txt | |
| RUN pip install -r /dependencies/requirements.txt | |
| # Environment variables will be passed at runtime via docker run -e flags | |
| # No need to set them here in the Dockerfile | |
| # Expose port | |
| EXPOSE 7860 | |
| CMD streamlit run app.py --server.port 7860 | |