Skip to content

Instantly share code, notes, and snippets.

@dmitryd
Created June 27, 2017 07:41
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 dmitryd/da6d770c4fdac01c7427fc4bf0cb357d to your computer and use it in GitHub Desktop.
Save dmitryd/da6d770c4fdac01c7427fc4bf0cb357d to your computer and use it in GitHub Desktop.
Dockerfile for mkpasswd. This fixes a problem when no suitable mkpasswd is available on OS X that can do sha-512 method.
#
# In ~/.profile: alias "mkpasswd=docker run -i -t mkpasswd"
#
FROM debian:stretch
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests whois
CMD ["/usr/bin/mkpasswd", "-m", "sha-512"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment