Skip to content

Instantly share code, notes, and snippets.

@PurpleBooth
Created April 12, 2019 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PurpleBooth/0f6a2a3874fefaad728e416f2afd2cc6 to your computer and use it in GitHub Desktop.
Save PurpleBooth/0f6a2a3874fefaad728e416f2afd2cc6 to your computer and use it in GitHub Desktop.
#!/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