Spaces:
Runtime error
Runtime error
Download Dockerfile from anithai/Java-Gradio-Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/anithai/Java-Gradio-Chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/anithai/Java-Gradio-Chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anithai/Java-Gradio-Chatbot/resolve/main/Dockerfile
436 Bytes
| FROM openjdk:11-jdk-slim | |
| # Install Python and Gradio | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| python3 python3-pip && \ | |
| pip3 install gradio && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy project files | |
| COPY . /app | |
| WORKDIR /app | |
| # Run Gradio app | |
| CMD ["python3", "app.py"] | |
| # Set correct permissions for the working directory | |
| RUN mkdir -p /app/flagged && chmod 777 /app/flagged | |