Spaces:
Sleeping
Sleeping
Download Dockerfile from Phoenix21/spring-gemini-chat: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/spaces/Phoenix21/spring-gemini-chat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Phoenix21/spring-gemini-chat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Phoenix21/spring-gemini-chat/resolve/main/Dockerfile
262 Bytes
| FROM openjdk:17-jdk-slim | |
| WORKDIR /app | |
| # Copy the jar file | |
| COPY target/*.jar app.jar | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV SERVER_PORT=7860 | |
| ENV SPRING_PROFILES_ACTIVE=prod | |
| # Run the application | |
| ENTRYPOINT ["java", "-jar", "/app/app.jar"] | |