updated dockerbuild for icons 2
This commit is contained in:
+8
-8
@@ -30,16 +30,16 @@ FROM base as build
|
|||||||
|
|
||||||
# Install packages needed to build gems and precompile assets
|
# Install packages needed to build gems and precompile assets
|
||||||
RUN apt-get update -qq && \
|
RUN apt-get update -qq && \
|
||||||
apt-get install --no-install-recommends -y build-essential pkg-config gnupg && \
|
apt-get install --no-install-recommends -y build-essential pkg-config less && \
|
||||||
mkdir -p /etc/apt/keyrings && \
|
# mkdir -p /etc/apt/keyrings && \
|
||||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
|
# 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 && \
|
# 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 update && \
|
||||||
apt-get install nodejs -y && \
|
# apt-get install nodejs -y && \
|
||||||
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||||
|
|
||||||
RUN apt-get install -y npm
|
# RUN apt-get install -y npm
|
||||||
RUN npm install -g yarn
|
# RUN npm install -g yarn
|
||||||
|
|
||||||
# Install application gems
|
# Install application gems
|
||||||
RUN bundle config set --local frozen false
|
RUN bundle config set --local frozen false
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import "trix"
|
|||||||
import "@rails/actiontext"
|
import "@rails/actiontext"
|
||||||
import { Application } from "@hotwired/stimulus"
|
import { Application } from "@hotwired/stimulus"
|
||||||
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
|
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
|
||||||
|
import { createIcons, icons } from "lucide-static";
|
||||||
|
|
||||||
const application = Application.start()
|
const application = Application.start()
|
||||||
eagerLoadControllersFrom("controllers", application)
|
eagerLoadControllersFrom("controllers", application)
|
||||||
|
|
||||||
|
|||||||
@@ -6,5 +6,7 @@ pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
|
|||||||
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
|
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
|
||||||
pin_all_from "app/javascript/controllers", under: "controllers"
|
pin_all_from "app/javascript/controllers", under: "controllers"
|
||||||
|
|
||||||
|
pin "lucide-static", to: "https://ga.jspm.io/npm:lucide-static@0.X.X/lucide.js"
|
||||||
|
|
||||||
pin "trix"
|
pin "trix"
|
||||||
pin "@rails/actiontext", to: "actiontext.js"
|
pin "@rails/actiontext", to: "actiontext.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user