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 /Dockerfile | |
| parent | e0f725dd0d00474c3cb9e5e24faf798ca186e9ee (diff) | |
Fix Dockerfile
Introducing the CGO-ish SQLite broke things.
Signed-off-by: AKP <tom@tdpain.net>
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 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 / |
