forked from glopezep/helm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
29 lines (24 loc) · 894 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
FROM node:lts-alpine3.17
ENV BASE_URL="https://get.helm.sh"
ENV HELM_2_FILE="helm-v2.17.0-linux-amd64.tar.gz"
ENV HELM_3_FILE="helm-v3.12.0-linux-amd64.tar.gz"
RUN apk update && apk upgrade --available && \
apk add --no-cache ca-certificates python3 jq curl bash aws-cli && \
# Install helm version 2:
curl -L ${BASE_URL}/${HELM_2_FILE} | tar xvz && \
mv linux-amd64/helm /usr/bin/helm && \
chmod +x /usr/bin/helm && \
rm -rf linux-amd64 && \
# Install helm version 3:
curl -L ${BASE_URL}/${HELM_3_FILE} | tar xvz && \
mv linux-amd64/helm /usr/bin/helm3 && \
chmod +x /usr/bin/helm3 && \
rm -rf linux-amd64 && \
# Init version 2 helm:
helm init --client-only
ENV PYTHONPATH "/usr/lib/python3.10/site-packages/"
ENV NODE_PATH "/usr/src/node_modules"
COPY . /usr/src/
WORKDIR /usr/src/
RUN npm ci
ENTRYPOINT ["node", "/usr/src/index.js"]