Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Jan 12, 2022
1 parent 4c3ec62 commit 9a68e69
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# BUILDER
FROM golang:latest AS builder
WORKDIR /go/src/app
COPY . .

RUN go get -d -v ./...
RUN go build -o authz0

# RUNNING
FROM debian:buster
RUN mkdir /app
COPY --from=builder /go/src/app/authz0 /app/authz0
WORKDIR /app/
CMD ["/app/authz0"]

0 comments on commit 9a68e69

Please sign in to comment.