-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (41 loc) · 1.19 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ARG HELMFILE_VERSION=0.165.0
ARG AZ_VERSION=2.61.0
FROM ghcr.io/helmfile/helmfile-ubuntu:v${HELMFILE_VERSION}
# Run noninteractive
ARG DEBIAN_FRONTEND=noninteractive
# Install main packages
RUN apt-get update && \
apt-get --no-install-recommends --yes install \
curl \
git \
jq \
make \
ncat \
postgresql-client \
pwgen \
python3-pip \
sudo \
unzip \
wget \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install PIP packages
ARG AZ_VERSION
RUN pip3 install -Iv azure-cli==${AZ_VERSION}
RUN pip3 install yq
# Disable Helmfile upgrade check
ENV HELMFILE_UPGRADE_NOTICE_DISABLED="true"
# Configure Helmfile user and group (using HOME from upstream image)
ARG HELMFILE_UID=1000
ARG HELMFILE_GID=${HELMFILE_UID}
ARG HELMFILE_USER="helmfile"
ARG HELMFILE_GROUP=${HELMFILE_USER}
RUN groupadd -g ${HELMFILE_GID} ${HELMFILE_GROUP} && \
useradd -m -u ${HELMFILE_UID} -g ${HELMFILE_GROUP} ${HELMFILE_USER}
RUN chown -R root:${HELMFILE_GROUP} ${HOME} && \
chmod -R 770 ${HOME}
USER ${HELMFILE_USER}
# Remove WORKDIR and ENTRYPOINT FROM base image
WORKDIR /
ENTRYPOINT []