diff options
| author | AKP <tom@tdpain.net> | 2022-08-13 18:33:15 +0100 |
|---|---|---|
| committer | AKP <tom@tdpain.net> | 2022-08-13 18:33:27 +0100 |
| commit | e28230f213ce0b87db5e8ffbfa75d586aa964802 (patch) | |
| tree | c41a0368719740fc567eb6229dc414d34cdcce5a | |
| parent | e0f725dd0d00474c3cb9e5e24faf798ca186e9ee (diff) | |
Fix Dockerfile
Introducing the CGO-ish SQLite broke things.
Signed-off-by: AKP <tom@tdpain.net>
| -rw-r--r-- | Dockerfile | 4 | ||||
| -rw-r--r-- | go.mod | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1,10 +1,10 @@ -FROM golang:1.18-alpine as builder +FROM golang:1.19 as builder RUN mkdir /build ADD . /build/ WORKDIR /build # Go 1.18 introduced a compile-time dependency for Git unless `-buildvcs=false` is provided -RUN CGO_ENABLED=0 GOOS=linux go build -a -buildvcs=false -installsuffix cgo -ldflags '-extldflags "-static" -s -w' -o main github.com/codemicro/walrss/walrss +RUN CGO_ENABLED=1 GOOS=linux go build -a -buildvcs=false -installsuffix cgo -ldflags '-extldflags "-static" -s -w' -o main github.com/codemicro/walrss/walrss FROM alpine COPY --from=builder /build/main / @@ -1,6 +1,6 @@ module github.com/codemicro/walrss -go 1.18 +go 1.19 require ( github.com/bwmarrin/go-alone v0.0.0-20190806015146-742bb55d1631 |
