fix bundler environment variables

This commit is contained in:
Ryan Cavicchioni 2025-04-30 15:55:23 -05:00
parent 9ab21f0e18
commit c63aa3490d
Signed by: ryanc
SSH Key Fingerprint: SHA256:FEbwJ3JyWHwYNAM8BqctZ/LmHHg1bzfi/huOj7FxlXU
2 changed files with 8 additions and 6 deletions

View File

@ -11,12 +11,13 @@ RUN <<EOT
gem install -N bundler gem install -N bundler
EOT EOT
ENV RACK_ENV="production" \
BUNDLE_DEPLOYMENT=true \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development test"
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
rm -rf /var/cache/apk rm -rf /var/cache/apk

View File

@ -10,12 +10,13 @@ RUN <<EOT
gem install -N bundler gem install -N bundler
EOT EOT
ENV RACK_ENV="production" \
BUNDLE_DEPLOYMENT=true \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development test"
FROM base AS build FROM base AS build
ENV BUNDLE_DEPLOYMENT=true \
BUNDLE_WITHOUT="development test"
RUN <<EOT RUN <<EOT
apt-get update -qq apt-get update -qq
apt-get install --yes --no-install-recommends gcc make libc-dev apt-get install --yes --no-install-recommends gcc make libc-dev