-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 827 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
FROM alpine:3.9
ARG HELM_VERSION=v2.17.0
ARG HELM_OS_ARCH=linux-amd64
RUN apk --no-cache add ca-certificates git bash curl jq \
&& wget -q https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-${HELM_OS_ARCH}.tar.gz \
&& tar -zxvf helm-${HELM_VERSION}-${HELM_OS_ARCH}.tar.gz ${HELM_OS_ARCH}/helm \
&& mv ${HELM_OS_ARCH}/helm /usr/local/bin/helm \
&& rm -rf ${HELM_OS_ARCH} helm-${HELM_VERSION}-${HELM_OS_ARCH}.tar.gz
COPY orca /usr/local/bin/orca
RUN addgroup -g 1001 -S orca \
&& adduser -u 1001 -D -S -G orca orca
USER orca
WORKDIR /home/orca
ENV HELM_HOME /home/orca/.helm
RUN helm init --stable-repo-url=https://charts.helm.sh/stable --client-only \
&& helm repo add "stable" "https://charts.helm.sh/stable" \
&& helm plugin install https://github.com/chartmuseum/helm-push
CMD ["orca"]