1 parent 55496fb commit ffedea0Copy full SHA for ffedea0
1 file changed
Dockerfile
@@ -1,10 +1,15 @@
1
-# Use an official Java runtime as the base image
2
-FROM openjdk:11
+# stable official Java runtime base image
+FROM openjdk:17-jdk-alpine
3
4
-# Set the working directory inside the container
+# metadata
5
+LABEL maintainer="[email protected]"
6
+LABEL version="1.0"
7
+LABEL description="A simple Java application"
8
+
9
+# working directory
10
WORKDIR /app
11
-# Copy the application JAR file into the container
12
+# Copy source code into the container
13
COPY src/Main.java /app/Main.java
14
15
# Compile the Java code
0 commit comments