-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (24 loc) · 889 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-FileCopyrightText: 2020 TQ Tezos <https://tqtezos.com/>
#
# SPDX-License-Identifier: LicenseRef-MIT-TQ
FROM alpine:3.20
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 \
libffi-dev zlib-dev zlib-static coreutils perl-utils cmake \
protobuf protobuf-dev sqlite-dev sqlite-libs cargo upx libc-dev \
sqlite-static
COPY ./build/build-rust.sh /build-rust.sh
RUN /build-rust.sh
ARG OCTEZ_VERSION
RUN git clone --single-branch --depth 1 --branch "$OCTEZ_VERSION" https://gitlab.com/tezos/tezos.git
WORKDIR /tezos
ENV OPAMYES true
COPY ./build/build-deps.sh /build-deps.sh
RUN /build-deps.sh
COPY ./build/build-tezos.sh /build-tezos.sh
ARG OCTEZ_EXECUTABLES
RUN /build-tezos.sh
RUN upx $OCTEZ_EXECUTABLES