updated dockerbuild for icons
This commit is contained in:
@@ -86,3 +86,5 @@ yarn-debug.log*
|
|||||||
/scratch.rb
|
/scratch.rb
|
||||||
/start_rails.bat
|
/start_rails.bat
|
||||||
/web.config
|
/web.config
|
||||||
|
|
||||||
|
/db/old
|
||||||
|
|||||||
+9
-9
@@ -9,9 +9,6 @@ ENV RAILS_ENV="production" \
|
|||||||
BUNDLE_DEPLOYMENT="1" \
|
BUNDLE_DEPLOYMENT="1" \
|
||||||
BUNDLE_PATH="/usr/local/bundle" \
|
BUNDLE_PATH="/usr/local/bundle" \
|
||||||
BUNDLE_WITHOUT="development:test"
|
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)
|
# Install base packages (libvips for Active Storage, curl for healthchecks)
|
||||||
RUN apt-get update -qq && \
|
RUN apt-get update -qq && \
|
||||||
@@ -28,19 +25,22 @@ RUN apt-get update -qq && \
|
|||||||
dos2unix && \
|
dos2unix && \
|
||||||
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
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
|
# 2. Build Stage: Gems and Assets
|
||||||
FROM base as build
|
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 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
|
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||||
|
|
||||||
|
RUN apt-get install -y npm
|
||||||
|
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
|
||||||
COPY Gemfile Gemfile.lock ./
|
COPY Gemfile Gemfile.lock ./
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user