0
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 5 years have passed since last update.

sbtを使ってDockerize

0
Posted at

dockerizeに便利なプラグインを追加

sbt-native-packager:https://github.com/sbt/sbt-native-packager

plugins.sbt
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.5.1")

プラグインを有効化

build.sbt
enablePlugins(JavaAppPackaging)

Dockerfile自動生成

# Dockerfileを自動生成
$ sbt docker:stage

target/docker/stage/opt/Dockerfileが作成される

おまけ

# Dockerイメージを生成
$ sbt docker:publishLocal
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?