diff --git a/.gitignore b/.gitignore index 17b3617..2a78455 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,5 @@ yarn-debug.log* /scratch.rb /start_rails.bat /web.config + +/db/old diff --git a/Dockerfile b/Dockerfile index 569c93c..2386075 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,6 @@ ENV RAILS_ENV="production" \ BUNDLE_DEPLOYMENT="1" \ BUNDLE_PATH="/usr/local/bundle" \ BUNDLE_WITHOUT="development:test" - # SUPERCRONIC_URL=https://github.com \ - # SUPERCRONIC=supercronic-linux-amd64 \ - # SUPERCRONIC_SHA1SUM=cd48d45327f3f3396734267468f707f43372c2fc # Install base packages (libvips for Active Storage, curl for healthchecks) RUN apt-get update -qq && \ @@ -28,19 +25,22 @@ RUN apt-get update -qq && \ dos2unix && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives -# RUN curl -fsSLO "$SUPERCRONIC_URL" \ -# && echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \ -# && chmod +x "$SUPERCRONIC" \ -# && mv "$SUPERCRONIC" /usr/local/bin/supercronic - # 2. Build Stage: Gems and Assets FROM base as build # Install packages needed to build gems and precompile assets RUN apt-get update -qq && \ - apt-get install --no-install-recommends -y build-essential pkg-config less && \ + apt-get install --no-install-recommends -y build-essential pkg-config gnupg && \ + mkdir -p /etc/apt/keyrings && \ + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \ + apt-get update && \ + apt-get install nodejs -y && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives +RUN apt-get install -y npm +RUN npm install -g yarn + # Install application gems RUN bundle config set --local frozen false COPY Gemfile Gemfile.lock ./ diff --git a/config/rails_icons.rb b/config/rails_icons.rb new file mode 100644 index 0000000..5b55b54 --- /dev/null +++ b/config/rails_icons.rb @@ -0,0 +1,5 @@ +RailsIcons.configure do |config| + # Only include the specific libraries your app uses in production + config.default_library = :lucide +# config.libraries = [:heroicons, :lucide] +end \ No newline at end of file