From 826ef02322f13dd0a62b356ab8f31b4d06919a96 Mon Sep 17 00:00:00 2001 From: Jason Jordan Date: Wed, 6 May 2026 17:08:48 -0400 Subject: [PATCH] updated dockerbuild for icons 4 --- .dockerignore | 2 ++ Dockerfile | 3 +++ app/views/id_card/print/index.html.erb | 8 ++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index e69de29..4797f42 100644 --- a/.dockerignore +++ b/.dockerignore @@ -0,0 +1,2 @@ +/app/assets/builds/* +/app/assets/svg/* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index fb70c4c..eb4c602 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,9 @@ RUN bundle install && \ # Copy application code COPY . . +# 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 diff --git a/app/views/id_card/print/index.html.erb b/app/views/id_card/print/index.html.erb index fc5ec59..3c873c7 100644 --- a/app/views/id_card/print/index.html.erb +++ b/app/views/id_card/print/index.html.erb @@ -2,7 +2,7 @@
<%= link_to dashboard_path, class: "flex items-center h-14 space-x" do %>
- <%= icon "arrow-big-left-dash", library: "lucide", class: "h-full w-20 text-center" %> + <%= icon "arrow-big-left-dash", class: "h-full w-20 text-center" %>
<%= "Back to Dashboard" %>
@@ -30,7 +30,7 @@
<%= link_to print_queued_by_employer_id_card_print_path(qu.pl_plan_key), data: { turbo: false }, class: "flex h-7 w-14 transition duration-100" do %> - <%= icon "printer", library: "lucide", class: "h-full w-full text-center text-platinum hover:text-bronze bg-atmosphere hover:bg-deepcove border-2 border-atmosphere rounded-md p-0.5" %> + <%= icon "printer", class: "h-full w-full text-center text-platinum hover:text-bronze bg-atmosphere hover:bg-deepcove border-2 border-atmosphere rounded-md p-0.5" %> <% end %>
@@ -51,7 +51,7 @@
<%= link_to print_queued_by_employer_id_card_print_path(nq.pl_plan_key), data: { turbo: false }, class: "flex h-7 w-14 transition duration-100 pointer-events-none opacity-50 cursor-not-allowed" do %> - <%= icon "printer", library: "lucide", class: "h-full w-full text-center text-platinum bg-atmosphere hover:bg-deepcove border-2 border-atmosphere rounded-md p-0.5" %> + <%= icon "printer", class: "h-full w-full text-center text-platinum bg-atmosphere hover:bg-deepcove border-2 border-atmosphere rounded-md p-0.5" %> <% end %>
@@ -66,7 +66,7 @@
<%= select_tag "employer_select", options_for_select(Employer.all.pluck(:name, :pl_plan_key)), include_blank: "Select Group", data: { action: "change->link-updater#update", link_updater_target: "selector" }, class: "w-full rounded-lg rounded-r-none #{TailwindFormBuilder::SELECT_FIELD_STYLE}" %> <%= link_to "#", class: 'w-1/4 h-11 bg-cobalt-vivid hover:bg-deepcove border-2 border-cobalt-vivid text-platinum hover:text-bronze font-bold px-3 rounded-r-lg h-10 transition duration-100', data: { turbo: false, link_updater_target: "link" } do %> - <%= icon "printer", library: "lucide", class: "h-full w-full text-center rounded-md p-0.5" %> + <%= icon "printer", class: "h-full w-full text-center rounded-md p-0.5" %> <% end %>