Skip to content

Commit

Permalink
moved to scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
wasilak committed Dec 9, 2024
1 parent 1d85da5 commit da08ea9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM quay.io/wasilak/golang:1.23-alpine as builder
FROM quay.io/wasilak/golang:1.23 AS builder

COPY . /app
WORKDIR /app/
RUN mkdir -p ./dist
RUN go build -o ./dist/elastauth

FROM quay.io/wasilak/alpine:3
RUN CGO_ENABLED=0 go build -o /elastauth

COPY --from=builder /app/dist/elastauth /elastauth
FROM scratch

LABEL org.opencontainers.image.source="https://github.com/wasilak/elastauth"

COPY --from=builder /elastauth .

ENV USER=root

CMD ["/elastauth"]

0 comments on commit da08ea9

Please sign in to comment.