Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- 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"]
|