Spaces:
Sleeping
Sleeping
Download Dockerfile from Rehan12345678/OpenWeatherMCPServer: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/Rehan12345678/OpenWeatherMCPServer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rehan12345678/OpenWeatherMCPServer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rehan12345678/OpenWeatherMCPServer/resolve/main/Dockerfile
663 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.9 | |
| # Set the working directory to /code | |
| WORKDIR /code | |
| # Copy the requirements file into the container | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install the dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy your entire project (including the src folder) into the container | |
| COPY ./ /code/ | |
| # Run the FastAPI app, specifying the module path | |
| # The format is <folder.file_name>:<app_variable> | |
| # If you have a src folder and streamlit_app.py file, the path is src.streamlit_app | |
| CMD ["uvicorn", "src.streamlit_app:app", "--host", "0.0.0.0", "--port", "7860"] |