updated dockerbuild for icons

This commit is contained in:
Jason Jordan
2026-05-06 16:11:02 -04:00
parent 34843e2da7
commit f35cc99a0f
3 changed files with 16 additions and 9 deletions
+9 -9
View File
@@ -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 ./