Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Dockerfile fixes

Zach Gollwitzer8e339dcbe010
diff --git a/Dockerfile b/Dockerfile
index 40b24685..d75d7ac7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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