-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
32 lines (22 loc) · 1.17 KB
/
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
25
26
27
28
29
30
31
32
# syntax=docker/dockerfile:1.2
ARG APTOS_VERSION=testnet
FROM aptoslab/validator:$APTOS_VERSION as chain
FROM ubuntu:20.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get -y install -y \
ca-certificates libssl1.1 vim htop iotop sysstat \
dstat strace lsof curl jq tzdata && \
rm -rf /var/cache/apt /var/lib/apt/lists/*
RUN rm /etc/localtime && ln -snf /usr/share/zoneinfo/America/Montreal /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
RUN mkdir /tmp/wasmer-install && cd /tmp/wasmer-install && \
curl -L https://github.com/wasmerio/wasmer/releases/download/2.3.0/wasmer-linux-amd64.tar.gz | tar xzf - && \
mv lib/libwasmer.a lib/libwasmer.so /usr/lib/ && cd / && rm -rf /tmp/wasmer-install
ADD /fireaptos /app/fireaptos
COPY tools/fireaptos/motd_generic /etc/
COPY tools/fireaptos/motd_node_manager /etc/
COPY tools/fireaptos/99-firehose.sh /etc/profile.d/
COPY tools/fireaptos/scripts/* /usr/local/bin
# Happen as low as possible because we will be waiting for image to download, so it let
# operations above in in the same stage to continue
COPY --from=chain /usr/local/bin/aptos-node /app/aptos-node
ENTRYPOINT ["/app/fireaptos"]