File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 2
2
# Base image
3
3
# @see https://hub.docker.com/_/alpine/
4
4
#
5
- FROM alpine:3.10
5
+ ARG BASE_IMAGE
6
+ FROM ${BASE_IMAGE}
6
7
7
8
#
8
9
# Arguments
@@ -12,7 +13,7 @@ ARG VCS_REF
12
13
ARG VCS_SRC
13
14
ARG VERSION
14
15
ARG OVERLAY_VERSION="v1.22.1.0"
15
- ARG OVERLAY_ARCH= "amd64"
16
+ ARG OVERLAY_ARCH
16
17
17
18
#
18
19
# Labels
@@ -59,6 +60,11 @@ RUN apk add --no-cache \
59
60
#
60
61
RUN useradd -u 1000 -U -d /config -s /bin/false abc
61
62
63
+ #
64
+ # Add QEMU for running arm images on amd64
65
+ #
66
+ COPY ./bin/qemu-arm-static /usr/bin/qemu-arm-static
67
+
62
68
#
63
69
# Install s6-overlay
64
70
# @see https://github.com/just-containers/s6-overlay
Original file line number Diff line number Diff line change 6
6
# @see https://microbadger.com/labels
7
7
#
8
8
9
- echo " Building image "
9
+ echo " Building images "
10
10
11
11
docker build \
12
+ --build-arg BASE_IMAGE=" alpine:3.10" \
12
13
--build-arg BUILD_DATE=` date -u +" %Y-%m-%dT%H:%M:%SZ" ` \
14
+ --build-arg OVERLAY_ARCH=" amd64" \
13
15
--build-arg VCS_REF=` git rev-parse --short HEAD` \
14
16
--build-arg VCS_SRC=" https://github.com/SloCompTech/docker-openvpn/commit/$SOURCE_COMMIT " \
15
17
--build-arg VERSION=" $SOURCE_BRANCH " \
16
- -t $IMAGE_NAME .
18
+ -t $IMAGE_NAME .
19
+
20
+ docker build \
21
+ --build-arg BASE_IMAGE=" arm32v6/alpine:3.10" \
22
+ --build-arg BUILD_DATE=` date -u +" %Y-%m-%dT%H:%M:%SZ" ` \
23
+ --build-arg OVERLAY_ARCH=" armhf" \
24
+ --build-arg VCS_REF=` git rev-parse --short HEAD` \
25
+ --build-arg VCS_SRC=" https://github.com/SloCompTech/docker-openvpn/commit/$SOURCE_COMMIT " \
26
+ --build-arg VERSION=" $SOURCE_BRANCH " \
27
+ -t $IMAGE_NAME -armhf .
You can’t perform that action at this time.
0 commit comments