io.bkbn.skelegro.docker.commands.WorkDir.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skelegro-docker Show documentation
Show all versions of skelegro-docker Show documentation
A wacky assortment of Kotlin DSLs for infrastructure manifest generation
package io.bkbn.skelegro.docker.commands
import io.bkbn.skelegro.docker.Dockerfile
class WorkDir(
var path: String = "",
comment: String? = null
) : Command(comment) {
override fun tag() = "WORKDIR"
override fun toString() = "${tag()} $path"
}
fun Dockerfile.WORKDIR(init: WorkDir.() -> Unit): WorkDir {
val workdir = WorkDir().apply(init)
steps.add(workdir)
return workdir
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy