-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhtpasswd.multiarch.alpine.Dockerfile
33 lines (25 loc) · 1.16 KB
/
htpasswd.multiarch.alpine.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# build: docker build --no-cache --progress=plain -t tobi312/tools:htpasswd -f htpasswd.multiarch.alpine.Dockerfile .
# hadolint ignore=DL3007
FROM alpine:latest AS builder
# hadolint ignore=DL3018
RUN apk add --no-cache apache2-utils
# hadolint ignore=DL3007
FROM alpine:latest AS production
ARG VCS_REF
ARG BUILD_DATE
LABEL org.opencontainers.image.title="htpasswd" \
org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
#org.opencontainers.image.version="2.4.62" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.revision="${VCS_REF}" \
org.opencontainers.image.description="docker run --rm --name htpasswd -it tobi312/tools:htpasswd -bn username passw0rd" \
org.opencontainers.image.documentation="https://httpd.apache.org/docs/2.4/programs/htpasswd.html" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/tools" \
org.opencontainers.image.source="https://github.com/Tob1as/docker-tools"
COPY --from=builder /usr/bin/htpasswd /usr/bin/htpasswd
# hadolint ignore=DL3018
RUN apk add --no-cache apr-util
USER nobody
ENTRYPOINT ["htpasswd"]
CMD ["--help"]