Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@ RUN yarn check --integrity
# Build assets
RUN yarn build

RUN bundle update rake
RUN cd ../evocation && rake install

RUN EVOCATION_DIR="/evocation" RCD_MOUNTDIR=$(pwd)/.. evocation spellbind avo-dashboards.gemspec

# Build gem
RUN bundle exec rails build
14 changes: 14 additions & 0 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# stage: docker client binaries
FROM docker:27-cli AS dockercli

# final: your app
FROM ruby:3.2.1
# optional: build tools for native gems
RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/*

# copy docker client + plugins (e.g., buildx)
COPY --from=dockercli /usr/local/bin/docker /usr/local/bin/docker

WORKDIR /app
COPY . .

RUN apt-get update -qq && apt-get install -yqq build-essential apt-transport-https apt-utils

Expand All @@ -12,6 +24,8 @@ RUN apt-get install -yqq libxml2-dev libxslt1-dev build-essential patch ruby-dev
# RUN gem install nokogiri selenium-webdriver ffi ruby-debug-ide tilt debase
RUN gem install nokogiri selenium-webdriver ffi ruby-debug-ide tilt

RUN apt-get install -y libsodium-dev

# node
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.gems
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM avo_base

COPY ./avo /avo
COPY ./evocation /evocation
COPY ./avo-dashboards /avo-dashboards
COPY ./avo-menu /avo-menu
COPY ./avo-dynamic_filters /avo-dynamic_filters
Expand Down