Skip to content

Commit

Permalink
Dockerfile: Add initial version
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Wicki <gandro@gmx.net>
  • Loading branch information
gandro committed May 8, 2024
1 parent 6c60301 commit a455e48
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:alpine as builder
WORKDIR /build
COPY main.go .
COPY go.mod .
COPY go.sum .
RUN CGO_ENABLED=0 go build -o /go/bin/authservice main.go

FROM scratch
WORKDIR /
COPY html /html
COPY --from=builder /go/bin/authservice /authservice
ENTRYPOINT ["/authservice"]

0 comments on commit a455e48

Please sign in to comment.