Created
April 12, 2019 13:43
-
-
Save PurpleBooth/0f6a2a3874fefaad728e416f2afd2cc6 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
docker build -t image-name . | |
docker run -e PORT=8080 -p 8080:8080 -d --name container-name image-name | |
docker logs container-name | |
curl localhost:8080 | |
docker stop container-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment