Spaces:
Build error
Build error
Download Dockerfile from anithai/Java_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/9a47eacf8b39e23ff117a074dec72e63f9477de4/Dockerfile
- Command line
-
hf download hf://spaces/anithai/Java_Chatbot@9a47eacf8b39e23ff117a074dec72e63f9477de4/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/9a47eacf8b39e23ff117a074dec72e63f9477de4/Dockerfile
315 Bytes
| FROM python:3.10-slim | |
| # Install Java (correct path fix) | |
| RUN apt-get update && apt-get install -y default-jre | |
| # 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"] | |