Harshil24 commited on
Commit
a96d5ea
·
1 Parent(s): 1af8d03

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base image with a Java runtime (OpenJDK)
2
+ FROM openjdk:11
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy your Java JAR file into the container
8
+ #COPY your_java_program.jar /app/
9
+
10
+ # Set the command to run your Java program
11
+ CMD ["java", "-version"]