forked from gardener-attic/component-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 734 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 734 Bytes
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
# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
#### BUILDER ####
FROM eu.gcr.io/gardener-project/3rd/golang:1.15.5 AS builder
WORKDIR /go/src/github.com/gardener/component-cli
COPY . .
ARG EFFECTIVE_VERSION
RUN make install EFFECTIVE_VERSION=$EFFECTIVE_VERSION
#### BASE ####
FROM eu.gcr.io/gardenlinux/gardenlinux:184.0 AS base
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get --yes -o Dpkg::Options::="--force-confnew" install ca-certificates \
&& rm -rf /var/lib/apt /var/cache/apt
#### Component CLI ####
FROM base as cli
COPY --from=builder /go/bin/component-cli /component-cli
WORKDIR /
ENTRYPOINT ["/component-cli"]