Skip to content

Commit

Permalink
Merge pull request #24 from abichinger/master
Browse files Browse the repository at this point in the history
fix(Dockerfile): use default name for build stage
  • Loading branch information
hsluoyz authored Dec 14, 2021
2 parents a1a5d80 + 48ccb85 commit e4b5f95
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
FROM golang:1.15-alpine AS build-env
FROM golang:1.15-alpine

RUN apk update && apk upgrade && \
apk add --no-cache git

WORKDIR /
RUN mkdir ~/k8s-authz
WORKDIR ~/k8s-authz

COPY go.mod .
COPY go.sum .
RUN go mod download

COPY . .

RUN go build -o ./out/authz
RUN go build -o ./authz

COPY --from=build /out/authz /authz

WORKDIR "/authz"
EXPOSE 443

CMD ["./authz"]

0 comments on commit e4b5f95

Please sign in to comment.