2021-10-11 15:46:35 +00:00
|
|
|
# BUILD IMAGE --------------------------------------------------------
|
2023-09-13 23:08:14 +00:00
|
|
|
FROM golang:1.19 as builder
|
2021-10-11 15:46:35 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
# Build the final node binary
|
2021-10-15 10:47:23 +00:00
|
|
|
RUN make -j$(nproc) build
|
2021-10-11 15:46:35 +00:00
|
|
|
|
|
|
|
# ACTUAL IMAGE -------------------------------------------------------
|
|
|
|
|
2023-09-13 23:08:14 +00:00
|
|
|
FROM debian:12.1-slim
|
2021-10-11 15:46:35 +00:00
|
|
|
|
2021-10-15 10:47:23 +00:00
|
|
|
ARG GIT_COMMIT=unknown
|
|
|
|
|
2021-10-11 15:46:35 +00:00
|
|
|
LABEL maintainer="richard@status.im"
|
2022-11-09 19:53:01 +00:00
|
|
|
LABEL source="https://github.com/waku-org/go-waku"
|
2021-10-11 15:46:35 +00:00
|
|
|
LABEL description="go-waku: Waku V2 node"
|
2021-10-15 10:47:23 +00:00
|
|
|
LABEL commit=$GIT_COMMIT
|
2021-10-11 15:46:35 +00:00
|
|
|
|
2021-10-15 10:47:23 +00:00
|
|
|
# color, nocolor, json
|
|
|
|
ENV GOLOG_LOG_FMT=nocolor
|
2021-10-11 15:46:35 +00:00
|
|
|
|
2023-09-13 23:08:14 +00:00
|
|
|
RUN apt update && apt install -y ca-certificates
|
|
|
|
|
2022-05-06 19:34:13 +00:00
|
|
|
# go-waku default ports
|
|
|
|
EXPOSE 9000 30303 60000 60001 8008 8009
|
2021-10-11 15:46:35 +00:00
|
|
|
|
2021-10-15 10:47:23 +00:00
|
|
|
COPY --from=builder /app/build/waku /usr/bin/waku
|
2021-10-11 15:46:35 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/waku"]
|
|
|
|
# By default just show help if called without arguments
|
2021-10-15 10:47:23 +00:00
|
|
|
CMD ["--help"]
|