Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Build with go 1.19
Use distroless image
Use nobody user/group
  • Loading branch information
Tomy2e committed Nov 23, 2022
1 parent 7c26462 commit ce86c02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Build stage
FROM golang:1.17-alpine AS build
FROM golang:1.19-alpine AS build
WORKDIR /app
COPY . .
RUN go build -o /ovh-dynhost-updater
# Final image
FROM alpine:3.14
FROM gcr.io/distroless/static-debian11
WORKDIR /
COPY --from=build /ovh-dynhost-updater /usr/local/bin/ovh-dynhost-updater
USER 10001:10001
USER 65534:65534
ENTRYPOINT ["ovh-dynhost-updater"]

0 comments on commit ce86c02

Please sign in to comment.