Skip to content

Commit 015bf04

Browse files
committed
Dependency and build optimization
1 parent 0814bc8 commit 015bf04

File tree

4 files changed

+6
-37
lines changed

4 files changed

+6
-37
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ WORKDIR /rails
1616

1717
# Install base packages
1818
RUN apt-get update -qq && \
19-
apt-get install --no-install-recommends -y curl wget libjemalloc2 libvips sqlite3 && \
19+
apt-get install --no-install-recommends -y curl wget libjemalloc2 && \
2020
rm -rf /var/lib/apt/lists /var/cache/apt/archives
2121

2222
# Set production environment
@@ -36,14 +36,14 @@ RUN apt-get update -qq && \
3636
# Install application gems
3737
COPY Gemfile Gemfile.lock ./
3838
RUN bundle install --jobs=4 --retry=3 && \
39-
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
40-
bundle exec bootsnap precompile --gemfile
39+
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git
40+
# bundle exec bootsnap precompile --gemfile
4141

4242
# Copy application code
4343
COPY . .
4444

4545
# Precompile bootsnap code for faster boot times
46-
RUN bundle exec bootsnap precompile app/ lib/
46+
# RUN bundle exec bootsnap precompile app/ lib/
4747

4848
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
4949
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gem "rails", "~> 8.0.3"
55
# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
66
gem "propshaft"
77
# Use sqlite3 as the database for Active Record
8-
gem "sqlite3", ">= 2.1"
8+
# gem "sqlite3", ">= 2.1"
99
# Use the Puma web server [https://github.com/puma/puma]
1010
gem "puma", ">= 5.0"
1111
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
@@ -41,7 +41,7 @@ gem "kamal", require: false
4141
gem "thruster", require: false
4242

4343
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
44-
gem "image_processing", "~> 1.2"
44+
# gem "image_processing", "~> 1.2"
4545

4646
gem "aws-sdk-s3", require: false
4747

Gemfile.lock

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ GEM
225225
railties (>= 7.0.0)
226226
i18n (1.14.7)
227227
concurrent-ruby (~> 1.0)
228-
image_processing (1.14.0)
229-
mini_magick (>= 4.9.5, < 6)
230-
ruby-vips (>= 2.0.17, < 3)
231228
importmap-rails (2.2.2)
232229
actionpack (>= 6.0.0)
233230
activesupport (>= 6.0.0)
@@ -279,8 +276,6 @@ GEM
279276
marksmith (0.4.7)
280277
activesupport
281278
matrix (0.4.3)
282-
mini_magick (5.3.0)
283-
logger
284279
mini_mime (1.1.5)
285280
minitest (5.26.0)
286281
mission_control-jobs (1.1.0)
@@ -466,9 +461,6 @@ GEM
466461
rubocop-rails (>= 2.30)
467462
ruby-progressbar (1.13.0)
468463
ruby-rc4 (0.1.5)
469-
ruby-vips (2.2.4)
470-
ffi (~> 1.12)
471-
logger
472464
rubyzip (3.2.0)
473465
safely_block (0.5.0)
474466
sanitize (7.0.0)
@@ -514,13 +506,6 @@ GEM
514506
fugit (~> 1.11)
515507
railties (>= 7.1)
516508
thor (>= 1.3.1)
517-
sqlite3 (2.7.4-aarch64-linux-gnu)
518-
sqlite3 (2.7.4-aarch64-linux-musl)
519-
sqlite3 (2.7.4-arm-linux-gnu)
520-
sqlite3 (2.7.4-arm-linux-musl)
521-
sqlite3 (2.7.4-arm64-darwin)
522-
sqlite3 (2.7.4-x86_64-linux-gnu)
523-
sqlite3 (2.7.4-x86_64-linux-musl)
524509
sshkit (1.24.0)
525510
base64
526511
logger
@@ -609,7 +594,6 @@ DEPENDENCIES
609594
flipper-ui
610595
geocoder
611596
hotwire-livereload (~> 2.1)
612-
image_processing (~> 1.2)
613597
importmap-rails
614598
inline_svg
615599
jbuilder
@@ -640,7 +624,6 @@ DEPENDENCIES
640624
solid_cable
641625
solid_cache
642626
solid_queue
643-
sqlite3 (>= 2.1)
644627
stimulus-rails
645628
tailwind_merge (~> 1.3)
646629
tailwindcss-rails (~> 4.4)

app/views/active_storage/blobs/_blob.html.erb

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)