Spaces:
Build error
Build error
Download Dockerfile from anithai/Java_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/894caeca468b65db607f59f1f11e018bd5cc85df/Dockerfile
- Command line
-
hf download hf://spaces/anithai/Java_Chatbot@894caeca468b65db607f59f1f11e018bd5cc85df/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/894caeca468b65db607f59f1f11e018bd5cc85df/Dockerfile
299 Bytes
| FROM python:3.10-slim | |
| # Install Java | |
| RUN apt-get update && apt-get install -y openjdk-11-jdk | |
| # Install Gradio | |
| RUN pip install gradio | |
| # Copy project files | |
| COPY . /app | |
| WORKDIR /app | |
| # Compile Java Code | |
| RUN javac -cp ".:/app/json-20210307.jar" Main.java | |
| # Run Gradio app | |
| CMD ["python3", "app.py"] | |