Update Dockerfile: ADD_REPOSITORY_KEYS and ADD_REPOSITORIES now supported

parent 58b322a0
......@@ -14,6 +14,27 @@ ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
# adding repository keys
ARG ADD_REPOSITORY_KEYS=
RUN if [ "$ADD_REPOSITORY_KEYS" != "" ]; then \
DEBIAN_FRONTEND=noninteractive apt-get -q update && \
apt-get -q -y --no-install-recommends install \
gpg \
apt-transport-https \
ca-certificates \
lsb-release && \
apt-get -q clean && \
apt-get -q -y autoremove && \
rm -rf /var/lib/apt/lists/* && \
echo "$ADD_REPOSITORY_KEYS" | sed -e 's/^[[:space:]]*//' | apt-key add - ; \
fi
# adding repositories
ARG ADD_REPOSITORIES=
RUN if [ "$ADD_REPOSITORIES" != "" ]; then \
echo "$ADD_REPOSITORIES" | sed -e 's/^[[:space:]]*//' > /etc/apt/sources.list.d/added-from-docker-build-arg.list ; \
fi
# we might need to install some packages, but doing this in the entrypoint doesn't make any sense
ARG INSTALL_PACKAGES=
RUN if [ "$INSTALL_PACKAGES" != "" ]; then \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment