All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bkbn.skelegro.docker.commands.Expose.kt Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
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