enable bundler deployment mode
This commit is contained in:
		@@ -12,6 +12,9 @@ EOT
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
FROM base AS build
 | 
					FROM base AS build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ENV BUNDLE_DEPLOYMENT=true \
 | 
				
			||||||
 | 
					  BUNDLE_WITHOUT="development test"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN <<EOT
 | 
					RUN <<EOT
 | 
				
			||||||
  apk add musl-dev gcc make
 | 
					  apk add musl-dev gcc make
 | 
				
			||||||
EOT
 | 
					EOT
 | 
				
			||||||
@@ -19,7 +22,6 @@ EOT
 | 
				
			|||||||
COPY Gemfile* .
 | 
					COPY Gemfile* .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN <<EOT
 | 
					RUN <<EOT
 | 
				
			||||||
  bundle config set --local without development
 | 
					 | 
				
			||||||
  bundle install
 | 
					  bundle install
 | 
				
			||||||
EOT
 | 
					EOT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,6 +12,9 @@ EOT
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
FROM base AS build
 | 
					FROM base AS build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ENV BUNDLE_DEPLOYMENT=true \
 | 
				
			||||||
 | 
					  BUNDLE_WITHOUT="development test"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN <<EOT
 | 
					RUN <<EOT
 | 
				
			||||||
  apt-get install --yes gcc make
 | 
					  apt-get install --yes gcc make
 | 
				
			||||||
EOT
 | 
					EOT
 | 
				
			||||||
@@ -19,7 +22,6 @@ EOT
 | 
				
			|||||||
COPY Gemfile* .
 | 
					COPY Gemfile* .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN <<EOT
 | 
					RUN <<EOT
 | 
				
			||||||
  bundle config set --local without development
 | 
					 | 
				
			||||||
  bundle install
 | 
					  bundle install
 | 
				
			||||||
EOT
 | 
					EOT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user