forked from Azure/aad-pod-identity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (29 loc) · 977 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM golang:1.13.4 AS build
ENV GO111MODULE=on
WORKDIR /go/src/github.com/Azure/aad-pod-identity
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download
COPY . ./
ARG NMI_VERSION=0.0.0-dev
ARG MIC_VERSION=0.0.0-dev
ARG DEMO_VERSION=0.0.0-dev
ARG IDENTITY_VALIDATOR_VERSION=0.0.0-dev
RUN make build
FROM alpine:3.10.1 AS base
RUN apk add --no-cache \
ca-certificates \
iptables \
&& update-ca-certificates
FROM base AS nmi
COPY --from=build /go/src/github.com/Azure/aad-pod-identity/bin/aad-pod-identity/nmi /bin/
ENTRYPOINT ["nmi"]
FROM base AS mic
COPY --from=build /go/src/github.com/Azure/aad-pod-identity/bin/aad-pod-identity/mic /bin/
ENTRYPOINT ["mic"]
FROM base AS demo
COPY --from=build /go/src/github.com/Azure/aad-pod-identity/bin/aad-pod-identity/demo /bin/
ENTRYPOINT ["demo"]
FROM base AS identityvalidator
COPY --from=build /go/src/github.com/Azure/aad-pod-identity/bin/aad-pod-identity/identityvalidator /bin/
ENTRYPOINT ["identityvalidator"]