sudoku-game-spring / Dockerfile
Phoenix21's picture
Update Dockerfile for Sudoku Game
507cbd5 verified
raw
history blame contribute delete
339 Bytes
FROM openjdk:17-jdk-slim
WORKDIR /app
# Copy the jar file
COPY target/*.jar app.jar
# Expose port 7860 (required by Hugging Face)
EXPOSE 7860
# Set environment variables for Hugging Face Space
ENV SERVER_PORT=7860
ENV SPRING_PROFILES_ACTIVE=prod
# Run the application
ENTRYPOINT ["java", "-Dserver.port=7860", "-jar", "/app/app.jar"]