Skip to content

Commit

Permalink
fix: goreleaser docker go version upgrade to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Aug 15, 2024
1 parent b37243a commit 66b8e98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/docker/goreleaser.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.19 AS builder
FROM golang:1.21 AS builder

WORKDIR /root
COPY dist/ /root/
COPY ./dist/ /root/

ARG TARGETARCH
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
Expand All @@ -10,11 +10,11 @@ RUN if [ "${TARGETARCH}" = "arm64" ]; then \
cp linux_linux_amd64_v1/nibid /root/nibid; \
fi

FROM alpine
FROM alpine:latest

WORKDIR /root
RUN apk --no-cache add ca-certificates
COPY --from=builder /root/nibid /usr/local/bin/nibid

ENTRYPOINT ["nibid"]
CMD [ "start" ]
CMD [ "start" ]

0 comments on commit 66b8e98

Please sign in to comment.