Download Dockerfile from anithai/java_chat: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/spaces/anithai/java_chat/resolve/5ca9a87cda8ada7e174cdeeb2e5223c22bb03dcb/Dockerfile
- Command line
-
hf download hf://spaces/anithai/java_chat@5ca9a87cda8ada7e174cdeeb2e5223c22bb03dcb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anithai/java_chat/resolve/5ca9a87cda8ada7e174cdeeb2e5223c22bb03dcb/Dockerfile
459 Bytes
| FROM python:3.10-slim | |
| # Install dependencies and Java | |
| RUN apt-get update && \ | |
| apt-get install -y openjdk-17-jdk unzip && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Verify Java installation (important for debugging) | |
| RUN java -version | |
| WORKDIR /app | |
| # Copy project files | |
| COPY . . | |
| # Extract lib.zip to the correct path | |
| RUN unzip lib.zip -d lib | |
| # Install Python dependencies | |
| RUN pip install -r requirements.txt | |
| # Command to run the app | |
| CMD ["python", "app.py"] | |