-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (36 loc) · 1.21 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
FROM golang:1.20.2
ENV PACKAGES jq curl wget jq file make git
WORKDIR /apps
COPY . .
RUN apt install apt-transport-https ca-certificates
RUN cp sources.list /etc/apt/sources.list
RUN apt update
RUN apt install vim -y
#RUN apt-get update
#RUN apt install -y apt-transport-https ca-certificates
#RUN cp sources.list /etc/apt/sources.list
#RUN apt-get install -y jq
#RUN apt-get install -y curl make git
RUN ls -a
RUN go version
RUN go env -w GOPROXY=https://goproxy.cn,direct
#RUN go mod tidy
env GO111MODULE=on
RUN go env -w GOPRIVATE="git.everylink.ai"
RUN go env -w GOINSECURE=git.everylink.ai/public
RUN #git config --global url."http://git.everylink.ai/".insteadof "https://git.everylink.ai/"
#RUN go get git.everylink.ai/public/go-ethereum
RUN make install
RUN #apt-get install nginx -y
RUN #sh init.sh
RUN mkdir ~/.sequncerd
WORKDIR /apps/data
RUN ls -a
WORKDIR /apps
COPY data/ /root/.sequncerd/
WORKDIR /root/.sequncerd/
RUN ls -a
#RUN ./target/release/dtx-chain build-spec --disable-default-bootnode --chain local > customSpec.json
#RUN ./target/release/dtx-chain build-spec --chain=customSpec.json --raw --disable-default-bootnode > config/customSpecRaw.json
#COPY nginx/nginx.conf /etc/nginx/nginx.conf
#EXPOSE 9900