Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building in Docker #27

Open
fak3user opened this issue Sep 11, 2023 · 1 comment
Open

Error while building in Docker #27

fak3user opened this issue Sep 11, 2023 · 1 comment

Comments

@fak3user
Copy link

fak3user commented Sep 11, 2023

Hi! Trying to create an image with your lib, have an error

 > [builder 11/11] RUN CGO_ENABLED=0 go build -o ./app:                                                   
#0 3.861 # github.com/hajimehoshi/oto/v2             
#0 3.861 /go/pkg/mod/github.com/hajimehoshi/oto/[email protected]/context.go:32:11: undefined: context            
#0 3.861 /go/pkg/mod/github.com/hajimehoshi/oto/[email protected]/context.go:106:21: undefined: newContext
------
ERROR: failed to solve: executor failed running [/bin/sh -c CGO_ENABLED=0 go build -o ./app]: exit code: 1
@RitLab
Copy link

RitLab commented Jul 11, 2024

Also meet this when create image using docker alpine 3.18

`Dockerfile:14

12 | WORKDIR /usr/app/go
13 | RUN go env
14 | >>> RUN go build -tags musl -v -o museum cmd/main.go
15 |
16 |

ERROR: failed to solve: process "/bin/sh -c go build -tags musl -v -o museum cmd/main.go" did not complete successfully: exit code: 1
root@app:~/ritlab/museum# client_loop: send disconnect: Broken pipe`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants