Skip to content

Instantly share code, notes, and snippets.

@jaylandro
Created September 29, 2019 19:50
Show Gist options
  • Save jaylandro/75d385eea8cbe99e33646bb3cac6f94d to your computer and use it in GitHub Desktop.
Save jaylandro/75d385eea8cbe99e33646bb3cac6f94d to your computer and use it in GitHub Desktop.
Docker for Developers | Example 1

Building from the ground up, our first Dockerfile:

Save this snippet as Dockerfile:

FROM alpine:latest
ENV name Docker Developers
ENTRYPOINT echo "Hello, $name!"

In Bash or Powershell:

docker build .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment