Skip to content

Instantly share code, notes, and snippets.

@elyscape
Last active January 18, 2017 20:15
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 elyscape/28038bf896f29bad96a4349e541fb9d5 to your computer and use it in GitHub Desktop.
Save elyscape/28038bf896f29bad96a4349e541fb9d5 to your computer and use it in GitHub Desktop.
These commands add dumb-init to a Docker image - https://github.com/Yelp/dumb-init
RUN \
DUMB_INIT_VERSION=1.2.0 && \
DUMB_INIT_SHA256SUM=81231da1cd074fdc81af62789fead8641ef3f24b6b07366a1c34e5b059faf363 && \
curl -fsSLo /sbin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_amd64" && \
echo "${DUMB_INIT_SHA256SUM} */sbin/dumb-init" | sha256sum -c - && \
chmod +x /sbin/dumb-init
ENTRYPOINT [ "/sbin/dumb-init", "--" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment