wwhtrbbtt / TrackMe

https://tls.peet.ws
GNU General Public License v3.0
208 stars 32 forks source link

Error build #21

Closed PatSpiegel closed 2 months ago

PatSpiegel commented 2 months ago

log

[root@10228 TrackMe]# docker build -t "trackme:Dockerfile" .
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
STEP 1/11: FROM golang:1.18-alpine3.16
STEP 2/11: RUN apk add build-base
--> Using cache 49c1acadbacd24ab55492aec800661d82c4117c96fc650706e3cce636af28836
--> 49c1acadbacd
STEP 3/11: RUN apk add libpcap-dev
--> Using cache 9d18a93e2bef9ec7773a5314b0d3a8a5a0585a7807736f432b07cc07ae3069fe
--> 9d18a93e2bef
STEP 4/11: WORKDIR /app
--> Using cache 712f8cbe1fbc41714c74736d699846865a999262add7f7f43072dd4b3eb67de6
--> 712f8cbe1fbc
STEP 5/11: COPY go.mod go.sum config.json ./
--> Using cache 5ebc1711a477f271573d333897cfc0ed7a1e8a79d5f587954b932f25566ee7d3
--> 5ebc1711a477
STEP 6/11: COPY *.go ./
--> Using cache 551c2a9d981dda0032097e095a543a640dda5321c3f450fa4c25c4787cb6b1c1
--> 551c2a9d981d
STEP 7/11: COPY certs ./certs/
--> Using cache d90ff1487fdebf829590f432ff64fdd02b1faf3ee677766e107855210f8c9516
--> d90ff1487fde
STEP 8/11: COPY static ./static/
--> Using cache e2ec483d3e4d6aa14e22d2a60e35d6ada984710ee64070d4f9ebc836984982bc
--> e2ec483d3e4d
STEP 9/11: RUN go mod download
--> Using cache 91985cd98e20c15ba18ea532ec01b4fb5fcb69d6633c672156d5b41a134f3110
--> 91985cd98e20
STEP 10/11: RUN go build -o ./out/app *.go
# command-line-arguments
./routes.go:10:6: staticFile redeclared in this block
        ./paths.go:9:6: other declaration of staticFile
./routes.go:17:6: apiAll redeclared in this block
        ./paths.go:16:6: other declaration of apiAll
./routes.go:21:6: apiTLS redeclared in this block
        ./paths.go:20:6: other declaration of apiTLS
./routes.go:27:6: apiClean redeclared in this block
        ./paths.go:26:6: other declaration of apiClean
./routes.go:45:6: apiRequestCount redeclared in this block
        ./paths.go:41:6: other declaration of apiRequestCount
./routes.go:52:6: apiSearchJA3 redeclared in this block
        ./paths.go:48:6: other declaration of apiSearchJA3
./routes.go:65:6: apiSearchH2 redeclared in this block
        ./paths.go:61:6: other declaration of apiSearchH2
./routes.go:78:6: apiSearchPeetPrint redeclared in this block
        ./paths.go:74:6: other declaration of apiSearchPeetPrint
./routes.go:91:6: apiSearchUserAgent redeclared in this block
        ./paths.go:87:6: other declaration of apiSearchUserAgent
./routes.go:110:6: getAllPaths redeclared in this block
        ./paths.go:100:6: other declaration of getAllPaths
./routes.go:110:6: too many errors
Error: building at STEP "RUN go build -o ./out/app *.go": while running runtime: exit status 2