-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.arm32v7
41 lines (31 loc) · 1.48 KB
/
Dockerfile.arm32v7
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
34
35
36
37
38
39
40
41
FROM alpine:latest AS builder
RUN apk --update --no-cache add curl tar && \
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .
FROM arm32v7/alpine:latest
# Copy across the qemu binary that was downloaded in the previous build step
COPY --from=builder /qemu-arm-static /usr/bin
ARG BUILD_RFC3339="1970-01-01T00:00:00Z"
ARG COMMIT="local"
ARG VERSION="dirty"
STOPSIGNAL SIGKILL
LABEL org.opencontainers.image.ref.name="jnovack/my-cert-authority" \
org.opencontainers.image.created=$BUILD_RFC3339 \
org.opencontainers.image.authors="Justin J. Novack <jnovack@gmail.com>" \
org.opencontainers.image.documentation="https://github.com/jnovack/docker-my-cert-authority/README.md" \
org.opencontainers.image.description="Certificate Authority for quick certificate management" \
org.opencontainers.image.licenses="GPLv3" \
org.opencontainers.image.source="https://github.com/jnovack/docker-my-cert-authority" \
org.opencontainers.image.revision=$COMMIT \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.url="https://hub.docker.com/r/jnovack/my-cert-authority/"
ENV BUILD_RFC3339 "$BUILD_RFC3339"
ENV COMMIT "$COMMIT"
ENV VERSION "$VERSION"
RUN apk update && \
apk add ca-certificates openssl && \
rm -rf /var/cache/apk/*
VOLUME /opt
WORKDIR /opt
ENTRYPOINT ["/entrypoint.sh"]
ADD openssl.tmpl /
ADD entrypoint.sh /