Optimize Dockerfile
Optimize Dockerfile, reduce build time.
This commit is contained in:
		@@ -5,7 +5,7 @@ ENV RAILS_ENV=production \
 | 
			
		||||
 | 
			
		||||
WORKDIR /mastodon
 | 
			
		||||
 | 
			
		||||
COPY . /mastodon
 | 
			
		||||
COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
 | 
			
		||||
 | 
			
		||||
RUN BUILD_DEPS=" \
 | 
			
		||||
    postgresql-dev \
 | 
			
		||||
@@ -28,4 +28,6 @@ RUN BUILD_DEPS=" \
 | 
			
		||||
 && apk del $BUILD_DEPS \
 | 
			
		||||
 && rm -rf /tmp/* /var/cache/apk/*
 | 
			
		||||
 | 
			
		||||
COPY . /mastodon
 | 
			
		||||
 | 
			
		||||
VOLUME /mastodon/public/system /mastodon/public/assets
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user