From a421cd496d05114e47a25853a6200125dca0ca04 Mon Sep 17 00:00:00 2001 From: sto Date: Sun, 11 May 2025 16:19:18 +0200 Subject: [PATCH] Fix SCSS compiled file inclusion in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e4a9411..0e07e2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,9 +48,6 @@ RUN bundle exec bootsnap precompile 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 @@ -58,6 +55,9 @@ FROM base COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}" COPY --from=build /rails /rails +# TODO: find how not to depend on this hack to include the compiled SCSS. +RUN cp app/assets/builds/application.css `ls public/assets/application-*.css` + # Run and own only the runtime files as a non-root user for security RUN groupadd --system --gid 1000 rails && \ useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \