forked from subscan-explorer/subscan-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (25 loc) · 715 Bytes
/
Copy pathDockerfile
File metadata and controls
49 lines (25 loc) · 715 Bytes
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
FROM golang:1.12.4 as builder
WORKDIR /subscan
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . /subscan
WORKDIR /subscan/cmd
RUN go build -o subscan
FROM buildpack-deps:buster-scm
RUN mkdir subscan
WORKDIR subscan
RUN mkdir log
COPY configs configs
COPY configs/redis.toml.example configs/redis.toml
COPY configs/mysql.toml.example configs/mysql.toml
COPY configs/http.toml.example configs/http.toml
COPY --from=builder /subscan/cmd/subscan cmd/subscan
COPY cmd/run.py cmd/run.py
WORKDIR cmd
EXPOSE 4399
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
CMD ["/subscan/cmd/subscan"]