-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (43 loc) · 894 Bytes
/
Dockerfile
File metadata and controls
57 lines (43 loc) · 894 Bytes
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
# Built by Akito
# npub1wprtv89px7z2ut04vvquscpmyfuzvcxttwy2csvla5lvwyj807qqz5aqle
FROM alpine:3.18.3 AS build
ENV TZ=Europe/London
WORKDIR /build
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
COPY . .
RUN git submodule update --init
RUN make setup-golpe
RUN --mount=type=cache,target=/build/.cache \
make -j4
FROM alpine:3.18.3
WORKDIR /app
RUN \
apk --no-cache add \
lmdb \
flatbuffers \
libsecp256k1 \
libb2 \
zstd \
libressl \
&& rm -rf /var/cache/apk/*
COPY --from=build /build/strfry strfry
COPY --from=build /build/strfry.conf strfry.conf
COPY --from=build /build/strfry-db strfry-db
EXPOSE 7777
ENTRYPOINT ["/app/strfry"]
CMD ["relay"]