I can't build the docker image
DasMoorhuhn opened this issue · comments
Hello,
When i want to build the docker image for the server, it's throwing an error:
USER@001-D556:~/Docker/manyverse/go-ssb-room$ docker-compose build room
Building room
Step 1/10 : FROM golang:1.17-alpine
---> 270c4f58750f
Step 2/10 : RUN apk add --no-cache build-base git sqlite sqlite-dev
---> Using cache
---> df3fc2640859
Step 3/10 : RUN mkdir /app
---> Using cache
---> 2f8fe998fd8b
Step 4/10 : WORKDIR /app
---> Using cache
---> 88fbeeee2d3b
Step 5/10 : COPY . /app
---> Using cache
---> 9b5b699fd341
Step 6/10 : RUN cd /app/cmd/server && go build && cd /app/cmd/insert-user && go build
---> Running in fc9b521afb11
go: downloading github.com/ssbc/go-muxrpc/v2 v2.0.14-0.20221111190521-10382533750c
go: downloading github.com/throttled/throttled/v2 v2.11.0
go: downloading github.com/unrolled/secure v1.13.0
go: downloading go.mindeco.de v1.12.0
go: downloading modernc.org/sqlite v1.23.0
go: downloading github.com/ssbc/go-ssb-refs v0.5.2
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading github.com/ssbc/go-netwrap v0.1.5-0.20221019160355-cd323bb2e29d
go: downloading github.com/ssbc/go-secretstream v1.2.11-0.20221111164233-4b41f899f844
go: downloading golang.org/x/crypto v0.9.0
go: downloading github.com/friendsofgo/errors v0.9.2
go: downloading github.com/cryptix/go-sql-migrate v0.0.0-20210521142015-a3e4d9974764
go: downloading github.com/volatiletech/sqlboiler/v4 v4.14.2
go: downloading github.com/gorilla/csrf v1.7.1
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/gorilla/sessions v1.2.1
go: downloading github.com/mattevans/pwned-passwords v0.6.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading go.cryptoscope.co/nocomment v0.0.0-20210520094614-fb744e81f810
go: downloading github.com/go-logfmt/logfmt v0.6.0
go: downloading github.com/karrick/bufpool v1.2.0
go: downloading github.com/ssbc/go-luigi v0.3.7-0.20221019204020-324065b9a7c6
go: downloading github.com/volatiletech/strmangle v0.0.4
go: downloading gopkg.in/gorp.v1 v1.7.2
go: downloading github.com/gorilla/securecookie v1.1.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/mileusna/useragent v1.3.3
go: downloading github.com/BurntSushi/toml v1.3.1
go: downloading github.com/nicksnyder/go-i18n/v2 v2.2.1
go: downloading golang.org/x/text v0.9.0
go: downloading github.com/vcraescu/go-paginator/v2 v2.0.0
go: downloading github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c
go: downloading github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading github.com/karrick/gopool v1.2.2
go: downloading github.com/volatiletech/inflect v0.0.1
go: downloading gorm.io/gorm v1.25.1
go: downloading filippo.io/edwards25519 v1.0.0
go: downloading github.com/spf13/cast v1.5.1
go: downloading github.com/jinzhu/now v1.1.5
go: downloading golang.org/x/sys v0.8.0
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading modernc.org/libc v1.22.5
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/mattn/go-isatty v0.0.16
go: downloading modernc.org/mathutil v1.5.0
go: downloading modernc.org/memory v1.5.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
# modernc.org/sqlite
/go/pkg/mod/modernc.org/sqlite@v1.23.0/sqlite.go:1968:6: missing function body
/go/pkg/mod/modernc.org/sqlite@v1.23.0/sqlite.go:1968:18: syntax error: unexpected [, expecting (
note: module requires Go 1.18
ERROR: Service 'room' failed to build: The command '/bin/sh -c cd /app/cmd/server && go build && cd /app/cmd/insert-user && go build' returned a non-zero code: 2
How can i fix that? I followed exactly the steps for the docker-compose deployment severel times but always with the same result.