Skip to content

Commit

Permalink
Bump container to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiol committed Feb 13, 2024
1 parent cb71aae commit f7e1117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.18-alpine3.16 AS builder
FROM golang:1.21-alpine AS builder
RUN apk --no-cache add git
COPY . /build/
WORKDIR /build
ENV CGO_ENABLED 0
RUN go build -o ans -ldflags "-s -X 'main.VERSION=$(git describe --tags)' -X 'main.BUILDDATE=$(date +'%Y-%m-%dT%H:%M:%S')'"

FROM alpine:3.16
FROM alpine:3
RUN apk --no-cache add ca-certificates bash bash-completion
COPY --from=builder /build/ans /bin/ans
RUN echo "source /usr/share/bash-completion/bash_completion" >> ~/.bashrc
Expand Down

0 comments on commit f7e1117

Please sign in to comment.