mirror of
https://github.com/clearlinux/docs.git
synced 2026-08-19 05:37:17 +00:00
Fix Java CMD
This commit is contained in:
@@ -16,7 +16,7 @@ For this image, the most straight-forward use is to use a java container as both
|
||||
ADD . /usr/src/myapp
|
||||
WORKDIR /usr/src/myapp
|
||||
RUN javac Main.java
|
||||
CMD ["java Main"]
|
||||
CMD ["java", "Main"]
|
||||
|
||||
Then run the commands to build and run the docker image.
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ For this image, the most straight-forward use is to use a java container as both
|
||||
ADD . /usr/src/myapp
|
||||
WORKDIR /usr/src/myapp
|
||||
RUN javac Main.java
|
||||
CMD ["java Main"]
|
||||
CMD ["java", "Main"]
|
||||
|
||||
Then run the commands to build and run the docker image.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user