Skip to content

Commit ffedea0

Browse files
Update Dockerfile
1 parent 55496fb commit ffedea0

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# Use an official Java runtime as the base image
2-
FROM openjdk:11
1+
# stable official Java runtime base image
2+
FROM openjdk:17-jdk-alpine
33

4-
# Set the working directory inside the container
4+
# metadata
5+
LABEL maintainer="[email protected]"
6+
LABEL version="1.0"
7+
LABEL description="A simple Java application"
8+
9+
# working directory
510
WORKDIR /app
611

7-
# Copy the application JAR file into the container
12+
# Copy source code into the container
813
COPY src/Main.java /app/Main.java
914

1015
# Compile the Java code

0 commit comments

Comments
 (0)