forked from serokell/tezos-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.aarch64
19 lines (19 loc) · 983 Bytes
/
Dockerfile.aarch64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# SPDX-FileCopyrightText: 2020 TQ Tezos <https://tqtezos.com/>
#
# SPDX-License-Identifier: LicenseRef-MIT-TQ
FROM alpine:3.12 as binary-fetch
# Latest v5.0.0-2 qemu-user-static has some weird bug that causes curl and wget to segfault.
# See https://bugs.launchpad.net/qemu/+bug/1892684.
RUN wget https://github.com/multiarch/qemu-user-static/releases/download/v4.2.0-7/qemu-aarch64-static
RUN chmod +x qemu-aarch64-static
FROM arm64v8/alpine:3.12
COPY --from=binary-fetch qemu-aarch64-static /usr/bin/qemu-aarch64-static
RUN apk update
RUN apk --no-cache --virtual add rsync git m4 build-base patch unzip \
bubblewrap wget pkgconfig gmp-dev libev-dev hidapi-dev eudev-dev perl opam libusb-dev bash \
autoconf automake libtool linux-headers cargo libffi-dev zlib-static coreutils
COPY ./build/build-libusb-and-hidapi.sh /build-libusb-and-hidapi.sh
RUN /build-libusb-and-hidapi.sh
ARG TEZOS_VERSION
COPY ./build/build-tezos.sh /build-tezos.sh
RUN /build-tezos.sh ${TEZOS_VERSION}