Sign inSign up

ax2009live/htpasswd

By ax2009live

•Updated over 5 years ago

Image
0

87

ax2009live/htpasswd repository overview

wget https://dl-cdn.alpinelinux.org/alpine/v3.13/releases/x86_64/alpine-minirootfs-3.13.1-x86_64.tar.gz⁠

Dockerfile:

FROM scratch

ADD alpine-minirootfs-3.13.1-x86_64.tar.gz /
RUN apk add --update apache2-utils \
    && rm -rf /var/cache/apk/*

ENTRYPOINT ["htpasswd", "-Bbn"]

docker build -t ax2009live/htpasswd:1.0 .

To generate a password file:

docker run \
	-it --rm \
	ax2009live/htpasswd:1.0 \
	user password > /root/htpasswd

This will use bcrypt encryption.

Tag summary

Content type

Image

Digest

Size

3 MB

Last updated

over 5 years ago

docker pull ax2009live/htpasswd:1.0