Skip to content

Commit

Permalink
cmd/shfmt: bump Dockerfile image versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Jun 18, 2023
1 parent 604134b commit 799b04f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/shfmt/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.20.2-alpine AS build
FROM golang:1.20.5-alpine AS build

WORKDIR /src
RUN apk add --no-cache git
COPY . .
RUN CGO_ENABLED=0 go build -ldflags "-w -s -extldflags '-static' -X main.version=$(git describe --always --dirty --tags)" ./cmd/shfmt

FROM alpine:3.17.2 AS alpine
FROM alpine:3.18.2 AS alpine
COPY --from=build /src/shfmt /bin/shfmt
COPY "./cmd/shfmt/docker-entrypoint.sh" "/init"
ENTRYPOINT ["/init"]
Expand Down

0 comments on commit 799b04f

Please sign in to comment.