Admiral-Piett / goaws

AWS (SQS/SNS) Clone for Development testing
MIT License
770 stars 145 forks source link

standard_init_linux.go:190: exec user process caused "no such file or directory" #216

Closed williamdes closed 4 years ago

williamdes commented 4 years ago

https://github.com/p4tin/goaws/blob/4d29b1e517cb9a050e9687f8f59a64c3dc3c1875/Dockerfile#L13

https://github.com/gliderlabs/docker-alpine/issues/12

go build -o goaws app/cmd/goaws.go > CGO_ENABLED=0 go build -o goaws app/cmd/goaws.go

CGO_ENABLED=0 is needed so an alpine image can run the executable