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