Skip to content

Commit

Permalink
feat(deps): Build with golang v1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
breed808 committed Dec 28, 2023
1 parent eb8aa2b commit a16719e
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,12 +1,12 @@
FROM golang:1.17.5-alpine3.15 as builder
FROM golang:1.21.5-alpine3.19 as builder
RUN addgroup -g 2000 gandi && adduser -D -u 2000 -G gandi gandi
USER gandi
RUN mkdir /home/gandi/build
COPY . /home/gandi/build/
WORKDIR /home/gandi/build
RUN CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -o gandidyndns .

FROM alpine:3.15.0
FROM alpine:3.19
COPY --from=builder /home/gandi/build/gandidyndns /app/
RUN addgroup -g 2000 gandi && adduser -D -u 2000 -G gandi gandi
USER gandi
Expand Down

0 comments on commit a16719e

Please sign in to comment.