-
Notifications
You must be signed in to change notification settings - Fork 74
/
Dockerfile
49 lines (36 loc) · 1.2 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
FROM golang:1.22-bookworm AS builder
ARG GH_TOKEN
ADD . /src
WORKDIR /src
RUN make install
#==============================================================
FROM debian:bookworm-slim as execution
ENV DEBIAN_FRONTEND=noninteractive \
USERNAME=appuser \
APP_PATH=/data
#* curl jq - required for readyness probe and to download genesis
RUN apt update && \
apt -y dist-upgrade && \
apt install -y --no-install-recommends \
curl jq \
tzdata \
ca-certificates && \
echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \
apt update && \
apt install -y --no-install-recommends -t testing \
zlib1g \
libgnutls30 \
perl-base && \
rm -rf /var/cache/apt/*
#* Install dasel to work with json/yaml/toml configs
ENV DASEL_VERSION="v2.6.0"
ADD https://github.com/TomWright/dasel/releases/download/${DASEL_VERSION}/dasel_linux_amd64 /usr/local/bin/dasel
RUN chmod a+x /usr/local/bin/dasel
COPY --from=builder /go/bin/* /usr/local/bin/
RUN groupadd -g 1001 ${USERNAME} \
&& useradd -m -d ${APP_PATH} -u 1001 -g 1001 ${USERNAME}
EXPOSE 26656 26657
VOLUME ${APP_PATH}
WORKDIR ${APP_PATH}
USER ${USERNAME}
ENTRYPOINT ["allorad"]