Skip to content

Commit

Permalink
cmd/shfmt: update Dockerfile versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Dec 11, 2022
1 parent b01c433 commit 4b17735
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.18.2-alpine AS build
FROM golang:1.19.4-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.15.4 AS alpine
FROM alpine:3.17.0 AS alpine
COPY --from=build /src/shfmt /bin/shfmt
COPY "./cmd/shfmt/docker-entrypoint.sh" "/init"
ENTRYPOINT ["/init"]
Expand Down

0 comments on commit 4b17735

Please sign in to comment.