Spaces:
Runtime error
Runtime error
Download Dockerfile from WebashalarForML/SQL_agent: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/spaces/WebashalarForML/SQL_agent/resolve/894cea6b0ad37ffc8be37ded565a2e329e914ae7/Dockerfile
- Command line
-
hf download hf://spaces/WebashalarForML/SQL_agent@894cea6b0ad37ffc8be37ded565a2e329e914ae7/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/WebashalarForML/SQL_agent/resolve/894cea6b0ad37ffc8be37ded565a2e329e914ae7/Dockerfile
746 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.11-slim | |
| # Install any system dependencies (for example, gcc may be needed for some Python packages) | |
| RUN apt-get update && apt-get install -y gcc | |
| # Set the working directory to /app | |
| WORKDIR /app | |
| # Copy the requirements file into the container at /app | |
| COPY requirements.txt . | |
| # Upgrade pip and install any needed packages specified in requirements.txt | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy the rest of the application code into the container | |
| COPY . . | |
| # Expose port 7860 (or any other port your Flask app uses) | |
| EXPOSE 7860 | |
| # Define environment variable for Flask (optional) | |
| ENV FLASK_APP=app.py | |
| # Run the application | |
| CMD ["python", "app.py"] | |