Adding SRV_APT_GET_INSTALL feature

This commit is contained in:
Torsten Raudssus 2023-03-20 04:46:28 +01:00
parent 1025783ee9
commit e4991bf24c
2 changed files with 3 additions and 2 deletions

View file

@ -7,8 +7,9 @@ ARG SRV_VERSION="0"
ENV SRV_UID $SRV_UID
ENV SRV_GID $SRV_GID
ENV SRV_VERSION $SRV_VERSION
ENV SRV_APT_GET_INSTALL $SRV_APT_GET_INSTALL
RUN apt-get update -y && apt-get install -y jq \
RUN apt-get update -y && apt-get install -y jq $SRV_APT_GET_INSTALL \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv