Skip to content

Commit

Permalink
Simplify arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Dec 9, 2017
1 parent f11b959 commit 15362b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM debian:stable-slim as builder

COPY qemu-arm-static /usr/bin/
COPY qemu-aarch64-static /usr/bin/

FROM builder
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ archs = amd64 arm32v5 arm32v7 arm64v8 i386 aarch64

.PHONY: all build publish latest
all: build publish latest
qemu-arm-static:
cp /usr/bin/qemu-arm-static .
qemu-aarch64-static:
cp /usr/bin/qemu-aarch64-static .
build: qemu-arm-static qemu-aarch64-static
build: qemu-aarch64-static
$(foreach arch,$(archs), \
cat Dockerfile | sed "s/FROM debian:stable-slim/FROM ${arch}\/debian:stable-slim/g" > .Dockerfile; \
docker build -t jaymoulin/rpi-plex-video-converter:${VERSION}-$(arch) -f .Dockerfile ${CACHE} .;\
Expand Down

0 comments on commit 15362b2

Please sign in to comment.