Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Commit e4b5f95

Browse files
authored
Merge pull request #24 from abichinger/master
fix(Dockerfile): use default name for build stage
2 parents a1a5d80 + 48ccb85 commit e4b5f95

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
FROM golang:1.15-alpine AS build-env
1+
FROM golang:1.15-alpine
22

33
RUN apk update && apk upgrade && \
44
apk add --no-cache git
55

6-
WORKDIR /
6+
RUN mkdir ~/k8s-authz
7+
WORKDIR ~/k8s-authz
78

89
COPY go.mod .
910
COPY go.sum .
1011
RUN go mod download
1112

1213
COPY . .
1314

14-
RUN go build -o ./out/authz
15+
RUN go build -o ./authz
1516

16-
COPY --from=build /out/authz /authz
17-
18-
WORKDIR "/authz"
1917
EXPOSE 443
20-
2118
CMD ["./authz"]

0 commit comments

Comments
 (0)