Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
Collapsing RUNs to save space by combining layers (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherniv authored and pichouk committed Aug 27, 2018
1 parent 83ed832 commit 17b9055
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 17b9055

Please sign in to comment.