Add Dockerfile for Java 17 application

Signed-off-by: Riz Urian <98958099+rizjosel@users.noreply.github.com>
This commit is contained in:
Riz Urian 2025-12-26 23:50:32 +08:00 committed by GitHub
parent fd4361b118
commit 5aafb98125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
# Use lightweight Java 17 image
FROM eclipse-temurin:17-jre-alpine
# Set working directory
WORKDIR /app
# Copy jar from Gradle build output
COPY build/libs/*.jar app.jar
# Expose application port
EXPOSE 8080
# Run the application
ENTRYPOINT ["java", "-jar", "app.jar"]