From 7adad799c5e6b2f7661b8f81f3df8715c43cfa7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Jul 2017 12:10:59 +0200 Subject: [PATCH] putting everything in 1 RUN command --- containers/zammad/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/containers/zammad/Dockerfile b/containers/zammad/Dockerfile index 7a9c5b0..197abfb 100644 --- a/containers/zammad/Dockerfile +++ b/containers/zammad/Dockerfile @@ -21,7 +21,7 @@ LABEL org.label-schema.build-date="$BUILD_DATE" \ org.label-schema.schema-version="1.2" \ org.label-schema.docker.cmd="sysctl -w vm.max_map_count=262144;docker-compose up" -# install dependencies & GOSU +# install dependencies, GOSU & zammad RUN BUILD_DEPENDENCIES="git build-essential libffi-dev libpq5 libpq-dev" \ GOSU_DEPENDENCIES="ca-certificates wget" \ set -ex \ @@ -33,10 +33,7 @@ RUN BUILD_DEPENDENCIES="git build-essential libffi-dev libpq5 libpq-dev" \ && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \ && rm -rf "${GNUPGHOME}" /usr/local/bin/gosu.asc \ && chmod +x /usr/local/bin/gosu \ - && gosu nobody true - -# install zammad -RUN set -ex \ + && gosu nobody true \ && useradd -M -d ${ZAMMAD_DIR} -s /bin/bash ${ZAMMAD_USER} \ && cd $(dirname ${ZAMMAD_DIR}) \ && git clone --depth 1 -b "${GIT_BRANCH}" "${GIT_URL}" \