Skip to content

Instantly share code, notes, and snippets.

@twissmueller
Created December 1, 2020 12:58
Show Gist options
  • Save twissmueller/6df1b98898d9745d7586898c75dfdd62 to your computer and use it in GitHub Desktop.
Save twissmueller/6df1b98898d9745d7586898c75dfdd62 to your computer and use it in GitHub Desktop.
A minimal Pulumi example
import pulumi
import pulumi_docker as docker
myapp_build = docker.DockerBuild(context=f'../flask-first-steps')
myapp_image = docker.Image("myapp_image", image_name='myapp', build=myapp_build, skip_push=True)
container_ports = docker.ContainerPortArgs(internal=80, external=8080)
myapp_container = docker.Container("myapp_container", image="myapp", ports=[container_ports])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment