-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (20 loc) · 853 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:latest
LABEL maintainer="[email protected]"
ARG BUILD_DATE=""
ARG VCS_REF=""
ARG BUILD_VERSION="0.1"
LABEL org.label-schema.schema-version="1.0.0-rc1" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="burkhardm/htpasswd-alpine" \
org.label-schema.description="OpenSSL and Apache .htpasswd generator based on Alpine Linux." \
org.label-schema.url="https://www.sourcedome.de" \
org.label-schema.vcs-url="https://github.com/burkhardm/htpasswd-alpine" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vendor="Martin Burkhard" \
org.label-schema.version=$BUILD_VERSION \
org.label-schema.docker.cmd="docker run burkhardm/htpasswd-alpine"
RUN apk add --no-cache apache2-utils openssl && rm -rf /var/cache/apk/*
COPY ./passwd.sh /passwd.sh
RUN chmod +x /passwd.sh
ENTRYPOINT ["/passwd.sh"]
CMD []