forked from hoytech/strfry
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.custom
57 lines (45 loc) · 972 Bytes
/
Dockerfile.custom
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
FROM alpine:3.18.3 AS build
WORKDIR /build
COPY . .
RUN \
apk --no-cache add \
linux-headers \
git \
g++ \
make \
perl \
pkgconfig \
libtool \
ca-certificates \
libressl-dev \
zlib-dev \
lmdb-dev \
flatbuffers-dev \
libsecp256k1-dev \
zstd-dev \
&& rm -rf /var/cache/apk/* \
&& git submodule update --init \
&& make setup-golpe \
&& make -j4
FROM alpine:3.18.3
WORKDIR /app
RUN \
apk --no-cache add \
lmdb \
flatbuffers \
libsecp256k1 \
libb2 \
zstd \
libressl \
bash \
curl \
dotnet7-sdk \
&& rm -rf /var/cache/apk/*
HEALTHCHECK --interval=60s --retries=2 --timeout=10s CMD curl -ILfSs http://localhost:7777/ > /dev/null || exit 1
COPY strfry.sh /app/strfry.sh
COPY strfry.conf /etc/strfry.conf.default
COPY strfry-router.conf /etc/strfry-router.conf
RUN chmod +x /app/strfry.sh
COPY --from=build /build/strfry strfry
EXPOSE 7777
CMD ["/app/strfry.sh"]