Spaces:
Build error
Build error
Download Dockerfile from anithai/Java_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/anithai/Java_Chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anithai/Java_Chatbot/resolve/main/Dockerfile
394 Bytes
| FROM openjdk:17-jdk-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all project files | |
| COPY . /app | |
| # Create a 'lib' folder and copy the JSON jar file | |
| RUN mkdir -p /app/lib | |
| COPY lib/json-20210307.jar /app/lib/ | |
| # Install required Python dependencies | |
| RUN pip install gradio | |
| # Run Java with classpath including the JAR file | |
| CMD ["java", "-cp", "/app/lib/json-20210307.jar:/app", "Main"] | |