Skip to content

Commit bb5b77f

Browse files
committed
v0.5
- Remove Tailwind and keep pregenerated styles only - Remove Redis, Sidekiq in favour of SolidQueue/SolidCable - Upgrade to Rails 8.0.2 and Ruby 3.4.2
1 parent 30ffa76 commit bb5b77f

35 files changed

+1047
-278
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ config/deploy.*.yml
4141
!/app/assets/builds/.keep
4242

4343
/.vscode
44+
/node_modules

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.6
1+
3.4.2

Dockerfile

+5-7
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@
88
# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
99

1010
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
11-
ARG RUBY_VERSION=3.3.6
11+
ARG RUBY_VERSION=3.4.2
1212
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
1313

1414
# Rails app lives here
1515
WORKDIR /rails
1616

1717
# Install base packages
1818
RUN apt-get update -qq && \
19-
apt-get install --no-install-recommends -y curl libjemalloc2 libvips git ffmpeg cron && \
19+
apt-get install --no-install-recommends -y curl \
20+
libyaml-dev libvips git ffmpeg sqlite3 && \
2021
rm -rf /var/lib/apt/lists /var/cache/apt/archives
2122

2223
# Set production environment
2324
ENV RAILS_ENV="production" \
2425
BUNDLE_DEPLOYMENT="1" \
2526
BUNDLE_PATH="/usr/local/bundle" \
26-
BUNDLE_WITHOUT="development"
27+
BUNDLE_WITHOUT="development test"
2728

2829
# Throw-away build stage to reduce size of final image
2930
FROM base AS build
@@ -66,10 +67,7 @@ RUN chmod 755 /usr/local/bin/yt-dlp
6667
# Run and own only the runtime files as a non-root user for security
6768
RUN groupadd --system --gid 1000 rails && \
6869
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
69-
chown -R rails:rails log tmp public/dl
70-
71-
RUN chmod u+s /usr/sbin/cron
72-
70+
chown -R rails:rails log tmp storage public/dl
7371
USER 1000:1000
7472

7573
# Allow access (r/w) to host volume to save files

Gemfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ gem "ostruct", "~> 0.6.0"
1010
gem "propshaft"
1111
gem "puma"
1212
gem "rails", "~> 8.0"
13-
gem "redis"
14-
gem "sidekiq"
13+
gem "solid_cable"
14+
gem "solid_queue"
15+
gem "sqlite3"
1516
gem "stimulus-rails"
16-
gem "tailwindcss-rails"
1717
gem "thruster", "~> 0.1.9"
1818
gem "turbo-rails"
19-
gem "tzinfo-data", platforms: %i[windows jruby]
2019

2120
group :development, :test do
2221
gem "brakeman"
23-
gem "debug", platforms: %i[mri windows]
2422
gem "ruby-lsp"
2523
end
2624

0 commit comments

Comments
 (0)