-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
55 lines (40 loc) · 1.36 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM golang:1.20-buster as builder
WORKDIR /opt
ENV GOPATH /go
ENV PATH /go/bin:$PATH
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
COPY . /opt/bridge
RUN cd bridge && make bridge
FROM debian:buster
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
RUN update-ca-certificates
WORKDIR "/opt"
ENV CONFIG_PATH ''
ENV VERBOSITY 3
ENV NUMBEROFWORKERS 1024
ENV LISTENERS__RONIN__RPCURL ''
ENV LISTENERS__RONIN__SECRET__BRIDGEOPERATOR__PLAINPRIVATEKEY ''
ENV LISTENERS__RONIN__TASKINTERVAL ''
ENV LISTENERS__RONIN__TRANSACTIONCHECKPERIOD ''
ENV LISTENERS__RONIN__FROMHEIGHT ''
ENV LISTENERS__RONIN__GASLIMITBUMPRATIO ''
ENV LISTENERS__RONIN__MAXTASKQUERY ''
ENV LISTENERS__RONIN__MAXPROCESSINGTASKS ''
ENV LISTENERS__RONIN__STATS__NODE ''
ENV LISTENERS__RONIN__STATS__HOST ''
ENV LISTENERS__RONIN__STATS__SECRET ''
ENV LISTENERS__ETHEREUM__RPCURL ''
ENV LISTENERS__ETHEREUM__SECRET__BRIDGEOPERATOR__PLAINPRIVATEKEY ''
ENV LISTENERS__ETHEREUM__GETLOGSBATCHSIZE ''
ENV DATABASE__HOST ''
ENV DATABASE__PORT ''
ENV DATABASE__DBNAME ''
ENV DATABASE__USER ''
ENV DATABASE__PASSWORD ''
ENV DATABASE__CONNMAXLIFETIME ''
ENV DATABASE__MAXIDLECONNS ''
ENV DATABASE__MAXOPENCONNS ''
COPY --from=builder /go/bin/bridge /usr/local/bin/bridge
COPY --from=builder /opt/bridge/config/ ./
COPY --from=builder /opt/bridge/docker/entrypoint.sh ./
ENTRYPOINT ["./entrypoint.sh"]