-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (46 loc) · 1.49 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
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
ARG COSMOVISOR_VERSION=v1.6.0
FROM ghcr.io/akash-network/cosmovisor-base:$COSMOVISOR_VERSION AS cosmovisor
FROM ubuntu:jammy AS base
LABEL "org.opencontainers.image.source"="https://github.com/akash-network/cosmovisor"
ARG TARGETARCH
ARG GO_GETTER_VERSION
ARG GO_TEMPLATE_VERSION
SHELL ["/bin/bash", "-c"]
ENV LANG="en_US.UTF-8"
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
jq \
pv \
lz4 \
git \
tini \
curl \
wget \
gzip \
unzip \
netcat \
gettext-base \
build-essential \
ca-certificates \
libarchive-tools \
&& rm -rf /var/lib/apt/lists/*
RUN \
AWSCLI_ARCH=$(echo -n $TARGETARCH | sed -e 's/arm64/aarch64/g' | sed -e 's/amd64/x86_64/g') \
&& wget -q "https://awscli.amazonaws.com/awscli-exe-linux-${AWSCLI_ARCH}.zip" -O awscli.zip \
&& unzip awscli.zip && rm awscli.zip \
&& ./aws/install \
&& rm -r aws
RUN \
git config --global advice.detachedHead "false" \
&& wget -qO- https://github.com/SchwarzIT/go-template/releases/download/${GO_TEMPLATE_VERSION}/gt-linux-${TARGETARCH}.tar.gz | tar xvz -C /usr/bin \
&& wget https://github.com/troian/go-getter/releases/download/${GO_GETTER_VERSION}/go-getter_linux_${TARGETARCH}.deb -O go-getter.deb \
&& dpkg -i go-getter.deb \
&& rm -f go-getter.deb
ARG GOVERSION
ENV GOVERSION=$GOVERSION
COPY --from=cosmovisor /usr/bin/cosmovisor /usr/bin
COPY ./scripts/entrypoint.sh /entrypoint.sh
COPY ./patches/ /config/patches
ENTRYPOINT ["tini", "--"]
CMD ["/entrypoint.sh"]