Spaces:
Build error
Build error
Download Dockerfile from anithai/Java_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/14f5355f90488591e506efc0d2aac03d0acf337e/Dockerfile
- Command line
-
hf download hf://spaces/anithai/Java_Chatbot@14f5355f90488591e506efc0d2aac03d0acf337e/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/14f5355f90488591e506efc0d2aac03d0acf337e/Dockerfile
302 Bytes
| FROM openjdk:11 | |
| # Install Gradio and dependencies | |
| RUN apt-get update -y && apt-get install -y python3 python3-pip | |
| RUN pip3 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"] | |