Created
December 1, 2020 12:58
-
-
Save twissmueller/6df1b98898d9745d7586898c75dfdd62 to your computer and use it in GitHub Desktop.
A minimal Pulumi example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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