Spaces:
Paused
Paused
Download Dockerfile from NiansuhAI/LLMs: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/NiansuhAI/LLMs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NiansuhAI/LLMs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NiansuhAI/LLMs/resolve/main/Dockerfile
561 Bytes
| # Use the official Python base image | |
| FROM python:3.8-slim | |
| # Set the working directory, subsequent commands will be executed in this directory | |
| WORKDIR /app | |
| # Copy all files in the current directory to the working directory | |
| COPY . /app | |
| # Install Flask library | |
| RUN pip install Flask | |
| # Tell Docker the port number to listen on when running the container | |
| EXPOSE 5000 | |
| # Set environment variables to ensure Flask is running in production mode | |
| ENV FLASK_ENV=development | |
| # Set the startup command to run the Flask application | |
| CMD ["flask", "run", "--host=0.0.0.0"] |