LoginSignup
0
0

More than 1 year has passed since last update.

Docker imageのJDKを使ってwebアプリを起動する

Posted at

Dockerfileを作成する

Dockerfile
FROM amazon-corretto-17
ARG JAR_FILE=./build/libs/*.jar
COPY ${JAR_FILE} ./
ENTRYPOINT ["java","-jar","spring-security-demo-0.0.1-SNAPSHOT.jar"]

spring-security-demoの部分はアプリ名

IntelliJで↓の実行構成を作成して実行すると、localhost:8080にアプリが立ち上がる。
スクリーンショット 2022-10-11 22.56.15.png

0
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
0
0