Skip to content

Commit

Permalink
Dockerfile: bump alpinelinux to 3.19
Browse files Browse the repository at this point in the history
  • Loading branch information
anatol committed Dec 12, 2023
1 parent 41cd5ae commit ee54f4a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:alpine3.18 AS common
FROM golang:alpine3.19 AS common

RUN apk add gcc libc-dev

Expand All @@ -8,13 +8,15 @@ COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./

# CGO_CFLAGS to mitigate https://github.com/mattn/go-sqlite3/issues/1164

FROM common AS test
RUN go test -ldflags="-s -w"
RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go test -ldflags="-s -w"

FROM common AS build
RUN go build -ldflags="-s -w"
RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build -ldflags="-s -w"

FROM alpine:3.18 AS executable
FROM alpine:3.19 AS executable

RUN apk add tzdata

Expand Down

0 comments on commit ee54f4a

Please sign in to comment.