From 17b9055ed66d03361939cf88fb1f44da498880b6 Mon Sep 17 00:00:00 2001 From: dcherniv Date: Mon, 27 Aug 2018 16:25:41 -0400 Subject: [PATCH] Collapsing RUNs to save space by combining layers (#301) --- app/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index b5b1f78..462f9f3 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -28,10 +28,8 @@ RUN mkdir -p /mattermost/data \ && if [ "$edition" = "team" ] ; then curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; \ else curl https://releases.mattermost.com/$MM_VERSION/mattermost-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; fi \ && cp /mattermost/config/config.json /config.json.save \ - && rm -rf /mattermost/config/config.json - -# Get ready for production -RUN addgroup -g ${PGID} mattermost \ + && rm -rf /mattermost/config/config.json \ + && addgroup -g ${PGID} mattermost \ && adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \ && chown -R mattermost:mattermost /mattermost /config.json.save