forked from databus23/helm-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.release
23 lines (17 loc) · 903 Bytes
/
Dockerfile.release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM golang:1.22
# See https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt
# for the latest gh install instructions when the below didn't work
RUN type -p curl >/dev/null || (apt update && apt install curl -y)
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \
&& apt install gh -y
ARG HELM_DIFF_UID
RUN adduser \
--gecos "Helm Diff" \
--disabled-password \
-u "$HELM_DIFF_UID" \
helm-diff-releaser \
--shell /bin/sh
USER helm-diff-releaser