beta build
This commit is contained in:
+8
-1
@@ -50,17 +50,24 @@ RUN bundle install && \
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
RUN ./bin/rails stimulus:manifest:update
|
||||
RUN ./bin/importmap pin .
|
||||
|
||||
# RUN bundle exec ./bin/rails rails_icons:sync
|
||||
RUN ./bin/rails generate rails_icons:sync --libraries=lucide
|
||||
|
||||
# Precompile assets (Tailwind is triggered here via assets:precompile)
|
||||
# SECRET_KEY_BASE_DUMMY allows precompilation without real secrets
|
||||
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
|
||||
# RUN bundle exec rails assets:clobber assets:precompile RAILS_ENV=production SECRET_KEY_BASE_DUMMY=1
|
||||
RUN bundle exec rails assets:precompile RAILS_ENV=production SECRET_KEY_BASE_DUMMY=1
|
||||
|
||||
# 3. Final Stage: Lean Runtime
|
||||
FROM base
|
||||
|
||||
# Copy built artifacts: gems and precompiled assets
|
||||
# COPY --from=build /rails/public /rails/public
|
||||
# COPY --from=build /rails/app/javascript /rails/app/javascript
|
||||
# COPY --from=build /rails/config/importmap.rb /rails/config/importmap.rb
|
||||
COPY --from=build /usr/local/bundle /usr/local/bundle
|
||||
COPY --from=build /rails /rails
|
||||
|
||||
|
||||
Reference in New Issue
Block a user