Dockerfile fixes

Signed-off-by: Zach Gollwitzer <zach@maybe.co>
This commit is contained in:
Zach Gollwitzer
2025-02-13 17:24:24 -05:00
committed by GitHub
parent 366862fee1
commit 8e339dcbe0

View File

@@ -17,7 +17,6 @@ ENV RAILS_ENV="production" \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development"
# Throw-away build stage to reduce size of final image
FROM base AS build
@@ -36,12 +35,11 @@ RUN bundle exec bootsnap precompile --gemfile -j 0
COPY . .
# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/
RUN bundle exec bootsnap precompile -j 0 app/ lib/
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
# Final stage for app image
FROM base