forked from waku-org/nwaku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (26 loc) · 1.03 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
# BUILD IMAGE --------------------------------------------------------
FROM alpine:3.11 AS nim-build
ARG NIM_PARAMS
# Get build tools and required header files
RUN apk add --no-cache bash build-base pcre-dev linux-headers git
RUN mkdir /app
WORKDIR /app
ADD . .
# Ran separately from 'make' to avoid re-doing
RUN git submodule update --init --recursive
# Build the node binary
RUN make -j$(nproc) wakunode NIM_PARAMS="${NIM_PARAMS}"
# ACTUAL IMAGE -------------------------------------------------------
FROM alpine:3.11
LABEL maintainer="[email protected]"
LABEL source="https://github.com/status-im/nim-waku"
LABEL description="Wakunode: Waku and Whisper client"
EXPOSE 1234
# Referenced in the binary
RUN apk add --no-cache libgcc pcre-dev
# Fix for 'Error loading shared library libpcre.so.3: No such file or directory'
RUN ln -s /usr/lib/libpcre.so /usr/lib/libpcre.so.3
COPY --from=nim-build /app/build/wakunode /usr/bin/wakunode
ENTRYPOINT ["/usr/bin/wakunode"]
# By default just show help if called without arguments
CMD ["--help"]