forked from formelio/helm-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 971 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
FROM alpine:3.13
ENV BASE_URL="https://get.helm.sh"
ENV HELM_FILE="helm-v3.9.4-linux-amd64.tar.gz"
ARG SOPS_VERSION="v3.7.1"
RUN apk add --no-cache ca-certificates \
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
jq curl wget bash nodejs yarn git gnupg age && \
\
wget https://github.com/mozilla/sops/releases/download/$SOPS_VERSION/sops-$SOPS_VERSION.linux -O /usr/local/bin/sops && \
chmod 0755 /usr/local/bin/sops && \
chown root:root /usr/local/bin/sops && \
mkdir /lib64 && \
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 && \
curl -L ${BASE_URL}/${HELM_FILE} | tar xvz && \
mv linux-amd64/helm /usr/bin/helm && \
chmod +x /usr/bin/helm && \
rm -rf linux-amd64 && \
helm plugin install https://github.com/jkroepke/helm-secrets --version v3.14.0
COPY . /usr/src
RUN ["yarn", "--cwd", "/usr/src", "install"]
ENTRYPOINT ["node", "--experimental-modules", "/usr/src/index.js"]