darcys22 / godbledger

Accounting Software with GRPC endpoints and SQL Backends
https://www.godbledger.com/
GNU General Public License v3.0
480 stars 56 forks source link

Update Dockerfile.build to use golang:1.19-alpine #192

Closed aw3stin1 closed 1 year ago

aw3stin1 commented 1 year ago

The go.mod file requires go 1.19. However, the Dockerfile.build is pulling the golang alpine image from golang:1.15.5-alpine. This results in an error during the "RUN make" step in Dockerfile.build:

# github.com/darcys22/godbledger/internal/build internal/build/download.go:39:18: undefined: os.ReadFile internal/build/local.go:132:13: undefined: os.WriteFile internal/build/util.go:76:18: undefined: os.ReadFile note: module requires Go 1.19 make: [Makefile:42: build-native] Error 2 The command '/bin/sh -c make' returned a non-zero code: 2 make: [Makefile:80: docker-build] Error 2

Updating Dockerfile.build to use golang:1.19-alpine instead.

darcys22 commented 1 year ago

Amazing, thank you!