Download Dockerfile from anithai/java_chat: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/anithai/java_chat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/anithai/java_chat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anithai/java_chat/resolve/main/Dockerfile
436 Bytes
| FROM python:3.10-slim | |
| # Install Java | |
| RUN apt-get update && apt-get install -y default-jdk | |
| # Create working directory | |
| WORKDIR /app | |
| # Copy all project files | |
| COPY . /app | |
| # Unzip the JAR file if needed | |
| RUN unzip /app/lib/json-20210307.zip -d /app/lib/ || true | |
| # Add JAR file path to CLASSPATH | |
| ENV CLASSPATH="/app/lib/json-20210307.jar:/app" | |
| # Install Gradio | |
| RUN pip install gradio | |
| # Run the Gradio interface | |
| CMD ["python", "app.py"] | |