Download Dockerfile from Phoenix21/locallend: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/Phoenix21/locallend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Phoenix21/locallend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Phoenix21/locallend/resolve/main/Dockerfile
377 Bytes
| FROM openjdk:17-jdk-slim | |
| WORKDIR /app | |
| # Copy the jar file (built in GitHub Actions) | |
| COPY target/*.jar app.jar | |
| # Expose port 7860 (required by Hugging Face Spaces) | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV SERVER_PORT=7860 | |
| ENV SPRING_PROFILES_ACTIVE=prod | |
| # Run the application | |
| ENTRYPOINT ["java", "-Dserver.address=0.0.0.0", "-Dserver.port=7860", "-jar", "/app/app.jar"] | |