Spaces:
Runtime error
Runtime error
Download Dockerfile from regisklaconsulting/Drug-Classifier-Web-App: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/regisklaconsulting/Drug-Classifier-Web-App/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/regisklaconsulting/Drug-Classifier-Web-App/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/regisklaconsulting/Drug-Classifier-Web-App/resolve/main/Dockerfile
499 Bytes
| # Dockerfile | |
| # Use the official Python image with the desired version | |
| FROM python:3.13.3-slim | |
| # Set app/ as working directory and Copy files in it | |
| WORKDIR /app | |
| COPY requirements.txt /app | |
| COPY app/drug_app.py /app | |
| COPY models/. /app/models/ | |
| # Install the dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the port that Gradio will run on (default is 7860) | |
| EXPOSE 7860 | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| # Command to run your application | |
| CMD ["python", "drug_app.py"] | |