Skip to content

Commit 2ccf154

Browse files
committed
build ARM Docker image
1 parent e5c3af6 commit 2ccf154

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM alpine:latest
22

3+
# "amd64" | "arm" | ...
4+
ARG TARGETARCH
5+
36
# using host's filesystem boosts performance. it is expected that the user uses this as anonymous
47
# volume (i.e. nothing specific has to be done) for this to get cleaned up
58
VOLUME /var/cache/edgerouter
@@ -10,4 +13,4 @@ CMD ["serve"]
1013

1114
COPY bin/deploy-turbocharger-site.sh /usr/bin/
1215

13-
COPY rel/edgerouter_linux-amd64 /usr/bin/edgerouter
16+
COPY "rel/edgerouter_linux-$TARGETARCH" /usr/bin/edgerouter

turbobob.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"docker_images": [
3838
{
3939
"image": "fn61/edgerouter",
40-
"dockerfile_path": "Dockerfile"
40+
"dockerfile_path": "Dockerfile",
41+
"platforms": ["linux/amd64", "linux/arm/v7"]
4142
}
4243
]
4344
}

0 commit comments

Comments
 (0)