mirror of https://github.com/Lissy93/dashy.git
🔀 Merge pull request #133 from evroon/fix-docker-arm64v8
Fix arm64v8 Dockerfile Re: ##117
This commit is contained in:
commit
12adb90078
|
@ -1,14 +1,14 @@
|
||||||
FROM alpine:3.12 AS builder
|
FROM alpine:3.12 AS builder
|
||||||
|
|
||||||
# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
|
# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
|
||||||
RUN QEMU_URL=https://github.com/balena-io/qemu/releases/download/v5.2.0%2Bbalena4/qemu-5.2.0.balena4-arm.tar.gz \
|
RUN QEMU_URL=https://github.com/balena-io/qemu/releases/download/v5.2.0%2Bbalena4/qemu-5.2.0.balena4-aarch64.tar.gz \
|
||||||
&& apk add curl && curl -L $QEMU_URL | tar zxvf - -C . --strip-components 1
|
&& apk add curl && curl -L $QEMU_URL | tar zxvf - -C . --strip-components 1
|
||||||
|
|
||||||
# Start second (arm64v8) stage
|
# Start second (arm64v8) stage
|
||||||
FROM arm64v8/alpine:3.12
|
FROM arm64v8/alpine:3.12
|
||||||
|
|
||||||
# Add QEMU from build stage
|
# Add QEMU from build stage
|
||||||
COPY --from=builder qemu-arm-static /usr/bin
|
COPY --from=builder qemu-aarch64-static /usr/bin
|
||||||
|
|
||||||
# Install Node and Yarn
|
# Install Node and Yarn
|
||||||
RUN apk add --update --no-cache nodejs npm yarn
|
RUN apk add --update --no-cache nodejs npm yarn
|
||||||
|
|
Loading…
Reference in New Issue