From 1bddf19134911fa93986c09fc60fc2f3952d97a3 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Wed, 15 Feb 2023 01:20:42 +0100 Subject: [PATCH] add option to choose profile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44ecc8f..91aeabb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ ENV GROUP dockergroup ENV USER docker ENV HOMEDIR "/home/${USER}" ENV PATH ${HOMEDIR}/.local/bin:$PATH +ENV PROFILE production RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}" USER ${USER} WORKDIR ${HOMEDIR} @@ -14,4 +15,4 @@ RUN pip install --no-cache-dir -r requirements.txt RUN rm requirements.txt RUN git config --global --add safe.directory /drone/src -CMD [ "ansible-lint" ] \ No newline at end of file +CMD [ "ansible-lint", "--profile $PROFILE" ] \ No newline at end of file