Skip to content

Commit

Permalink
Fix arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Feb 2, 2019
1 parent 62ed4ca commit a8ed04d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions package/Dockerfile.arm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM alpine@sha256:6d94d2806ccbe3b6036b2cd55c61260f474692b6987c21386e32ef54bc40200a
RUN apk add -U --no-cache iptables
COPY entry /usr/bin/
CMD ["entry"]
7 changes: 6 additions & 1 deletion scripts/package
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ if echo $TAG | grep -q dirty; then
fi

IMAGE=${REPO}/klipper-lb:${TAG}
docker build -f package/Dockerfile -t ${IMAGE} .
DOCKERFILE=package/Dockerfile
if [ -e ${DOCKERFILE}.${ARCH} ]; then
DOCKERFILE=${DOCKERFILE}.${ARCH}
fi

docker build -f ${DOCKERFILE} -t ${IMAGE} .
echo Built ${IMAGE}

0 comments on commit a8ed04d

Please sign in to comment.