[GH-ISSUE #684] Cannot build from Dockerfile #539

Closed
opened 2026-05-05 12:21:04 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @toby1991 on GitHub (Apr 4, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/684

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.16.1

What operating system and processor architecture are you using (go env)?
docker

Configures you used:
docker build .

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Building frps
Step 1/6 : FROM golang:1.8
1.8: Pulling from library/golang
4176fe04cefe: Already exists
851356ecf618: Already exists
6115379c7b49: Already exists
69914558965c: Already exists
b108f9aa98db: Already exists
df7abcd2981e: Already exists
3e60cb3f592b: Already exists
Digest: sha256:f0b5dab7581eddb49dabd1d1b9aa505ca3edcdf79a66395b5bfa4f3c036b49ef
Status: Downloaded newer image for golang:1.8
 ---> 0d283eb41a92
Step 2/6 : COPY . /go/src/github.com/fatedier/frp
 ---> 73aa51a96d0b
Removing intermediate container e7ed3d383b70
Step 3/6 : RUN cd /go/src/github.com/fatedier/frp  && make  && mv bin/frpc /frpc  && mv bin/frps /frps  && mv conf/frpc.ini /frpc.ini  && mv conf/frps.ini /frps.ini  && make clean
 ---> Running in 90bd923c1e5a
go fmt ./...
vendor/github.com/fatedier/beego/controller.go
vendor/github.com/fatedier/beego/controller_test.go
vendor/github.com/fatedier/beego/template.go
vendor/github.com/fatedier/beego/logs/alils/signature.go
vendor/github.com/fatedier/beego/orm/db.go
vendor/github.com/fatedier/beego/toolbox/statistics.go
vendor/github.com/klauspost/cpuid/private/cpuid.go
vendor/github.com/stretchr/testify/assert/assertions.go
vendor/github.com/stretchr/testify/assert/assertions_test.go
vendor/github.com/tjfoc/gmsm/sm4/sm4.go
vendor/golang.org/x/crypto/ssh/kex.go
vendor/golang.org/x/net/ipv4/batch.go:59:14: expected type, found '='
vendor/golang.org/x/net/ipv4/batch.go:78:2: expected declaration, found 'if'
exit status 2
vendor/golang.org/x/net/ipv6/batch.go:56:14: expected type, found '='
vendor/golang.org/x/net/ipv6/batch.go:69:2: expected declaration, found 'if'
exit status 2
Makefile:18: recipe for target 'fmt' failed
make: *** [fmt] Error 1
ERROR: Service 'frps' failed to build: The command '/bin/sh -c cd /go/src/github.com/fatedier/frp  && make  && mv bin/frpc /frpc  && mv bin/frps /frps  && mv conf/frpc.ini /frpc.ini  && mv conf/frps.ini /frps.ini  && make clean' returned a non-zero code: 2

Describe the results you expected:
Successfully built b8f7a8d423d6

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

Originally created by @toby1991 on GitHub (Apr 4, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/684 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.16.1 **What operating system and processor architecture are you using (`go env`)?** docker **Configures you used:** docker build . **Steps to reproduce the issue:** 1. 2. 3. **Describe the results you received:** ``` Building frps Step 1/6 : FROM golang:1.8 1.8: Pulling from library/golang 4176fe04cefe: Already exists 851356ecf618: Already exists 6115379c7b49: Already exists 69914558965c: Already exists b108f9aa98db: Already exists df7abcd2981e: Already exists 3e60cb3f592b: Already exists Digest: sha256:f0b5dab7581eddb49dabd1d1b9aa505ca3edcdf79a66395b5bfa4f3c036b49ef Status: Downloaded newer image for golang:1.8 ---> 0d283eb41a92 Step 2/6 : COPY . /go/src/github.com/fatedier/frp ---> 73aa51a96d0b Removing intermediate container e7ed3d383b70 Step 3/6 : RUN cd /go/src/github.com/fatedier/frp && make && mv bin/frpc /frpc && mv bin/frps /frps && mv conf/frpc.ini /frpc.ini && mv conf/frps.ini /frps.ini && make clean ---> Running in 90bd923c1e5a go fmt ./... vendor/github.com/fatedier/beego/controller.go vendor/github.com/fatedier/beego/controller_test.go vendor/github.com/fatedier/beego/template.go vendor/github.com/fatedier/beego/logs/alils/signature.go vendor/github.com/fatedier/beego/orm/db.go vendor/github.com/fatedier/beego/toolbox/statistics.go vendor/github.com/klauspost/cpuid/private/cpuid.go vendor/github.com/stretchr/testify/assert/assertions.go vendor/github.com/stretchr/testify/assert/assertions_test.go vendor/github.com/tjfoc/gmsm/sm4/sm4.go vendor/golang.org/x/crypto/ssh/kex.go vendor/golang.org/x/net/ipv4/batch.go:59:14: expected type, found '=' vendor/golang.org/x/net/ipv4/batch.go:78:2: expected declaration, found 'if' exit status 2 vendor/golang.org/x/net/ipv6/batch.go:56:14: expected type, found '=' vendor/golang.org/x/net/ipv6/batch.go:69:2: expected declaration, found 'if' exit status 2 Makefile:18: recipe for target 'fmt' failed make: *** [fmt] Error 1 ERROR: Service 'frps' failed to build: The command '/bin/sh -c cd /go/src/github.com/fatedier/frp && make && mv bin/frpc /frpc && mv bin/frps /frps && mv conf/frpc.ini /frpc.ini && mv conf/frps.ini /frps.ini && make clean' returned a non-zero code: 2 ``` **Describe the results you expected:** Successfully built b8f7a8d423d6 **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#539
No description provided.