Commit 5a8a2afd authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update: dockerfile

parent 604946b9
Pipeline #674 canceled with stages
......@@ -14,11 +14,11 @@ COPY ./ ./witness/
RUN go env -w GOPROXY="https://goproxy.cn,direct"
RUN git clone git@code.wuban.net.cn:odysseus/odysseus-protocol.git
RUN git clone https://code.wuban.net.cn/odysseus/odysseus-protocol.git
FROM base AS build
RUN cd witness && go mod tidy && make
RUN cd witness && go mod tidy && go build -v -o /tmp/witness ./cmd/witness
FROM alpine
......@@ -26,7 +26,7 @@ WORKDIR /root
COPY ./config.toml ./config.toml
COPY --from=build /witness /usr/bin/witness
COPY --from=build /tmp/witness /usr/bin/witness
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
......
log-level = "debug"
metrics-listen = "0.0.0.0:8425"
metrics-listen = "0.0.0.0:20010"
grpc-listen = "0.0.0.0:9431"
grpc-listen = "0.0.0.0:20011"
rpc-listen = "0.0.0.0:9442"
rpc-listen = "0.0.0.0:20012"
chain-rpc = "https://1rpc.io/holesky"
......
......@@ -3,5 +3,6 @@
# exit script on any error
set -e
echo "runing witness"
/usr/bin/witness >> /root/witness.log 2>&1
echo "running witness"
nohup /usr/bin/witness -c /root/config.toml >> /root/witness.log 2>&1 &
tail -f /root/witness.log
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment