1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Docker + SpringBoot + Gradleでjarが実行されない

Posted at

###表示されるエラーメッセージ

Invalid or corrupt jarfile

###原因
####Dockerfileの書き方が間違えていた


FROM openjdk:11-jdk-stretch
ARG ${JAR_FILE}=build/libs/atsumako-0.0.1.jar #ここが間違えてる!!
COPY ${JAR_FILE} atsumako.jar
ENTRYPOINT ["java","-jar","/atsumako.jar"]

ARG ${JAR_FILE} じゃなくて、 ARG JAR_FILEですね。

ちゃんと確認すればすぐだったんだけど、、、

これでめっちゃ時間がかかってしまった。。。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?