Collapsing RUNs to save space by combining layers (#301)
This commit is contained in:
		
							parent
							
								
									83ed83237d
								
							
						
					
					
						commit
						17b9055ed6
					
				| @ -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 ; \ |     && 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 \ |       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 \ |     && cp /mattermost/config/config.json /config.json.save \ | ||||||
|     && rm -rf /mattermost/config/config.json |     && rm -rf /mattermost/config/config.json \ | ||||||
| 
 |     && addgroup -g ${PGID} mattermost \ | ||||||
| # Get ready for production |  | ||||||
| RUN addgroup -g ${PGID} mattermost \ |  | ||||||
|     && adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \ |     && adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \ | ||||||
|     && chown -R mattermost:mattermost /mattermost /config.json.save |     && chown -R mattermost:mattermost /mattermost /config.json.save | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 dcherniv
						dcherniv