Spaces:
Runtime error
Runtime error
Download Dockerfile from NitinBot002/Agrigo_api: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/spaces/NitinBot002/Agrigo_api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NitinBot002/Agrigo_api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NitinBot002/Agrigo_api/resolve/main/Dockerfile
672 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.8-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the current directory contents into the container at /app | |
| COPY . /app | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install Node.js and nport | |
| RUN apt update && apt install -y curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | |
| apt install -y nodejs && \ | |
| npm install -g nport | |
| # Expose port 5000 | |
| EXPOSE 7860 | |
| # Define environment variable for Flask | |
| ENV FLASK_APP=AgriGo/app.py | |
| # Run the application | |
| CMD ["python", "AgriGo/app.py"] | |