io.bkbn.skelegro.docker.commands.Expose.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 Expose(
var port: Int = 0,
comment: String? = null
) : Command(comment) {
override fun tag() = "EXPOSE"
override fun toString() = "${tag()} $port"
}
fun Dockerfile.EXPOSE(init: Expose.() -> Unit): Expose {
val expose = Expose().apply(init)
steps.add(expose)
return expose
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy