-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (62 loc) · 1.42 KB
/
Dockerfile
File metadata and controls
69 lines (62 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM ubuntu:20.04 as build-stage
# install build deps
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
autoconf \
automake \
autotools-dev \
build-essential \
bzip2 \
ca-certificates \
clang \
cmake \
curl \
doxygen \
git \
gnupg \
graphviz \
libbz2-dev \
libcurl4-gnutls-dev \
libgmp3-dev \
libpq-dev \
libssl-dev \
libtool \
libusb-1.0-0-dev \
llvm-7-dev \
lsb-release \
make \
patch \
pkg-config \
postgresql-server-dev-all \
python2.7 \
python2.7-dev \
python3 \
python3-dev \
ruby \
sudo \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
# setup build time variables
ARG EOSIO_VERSION=v2.1.0
ARG EOSIO_REPOSITORY=https://github.com/EOSIO/eos.git
ARG EOSIO_BUILD=Release
# build and install eosio
WORKDIR /tmp
RUN git clone --branch $EOSIO_VERSION --depth 1 $EOSIO_REPOSITORY . \
&& git submodule update --init --recursive
RUN ./scripts/eosio_build.sh -y -o $EOSIO_BUILD -i /eosio
RUN ./scripts/eosio_install.sh
# runtime image
FROM ubuntu:20.04
# runtime deps
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
libcurl3-gnutls \
libpq5 \
libtinfo5 \
libusb-1.0-0 \
&& rm -rf /var/lib/apt/lists/*
# copy eosio install
COPY --from=build-stage /eosio /eosio
# setup runtime env
ARG EOSIO_VERSION=v2.1.0
ENV EOSIO_VERSION=$EOSIO_VERSION
ENV PATH="/eosio/bin:${PATH}"