diff --git a/saas/Dockerfile b/saas/Dockerfile index ef03c0ca1..3910687aa 100644 --- a/saas/Dockerfile +++ b/saas/Dockerfile @@ -8,7 +8,9 @@ WORKDIR /rails # Set production environment ENV RAILS_ENV="production" \ BUNDLE_DEPLOYMENT="1" \ + SAAS="1" \ BUNDLE_PATH="/usr/local/bundle" \ + BUNDLE_GEMFILE="Gemfile.saas" \ BUNDLE_WITHOUT="development" @@ -21,7 +23,7 @@ RUN apt-get update -qq && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives # Install application gems -COPY Gemfile Gemfile.lock .ruby-version ./ +COPY Gemfile Gemfile.lock Gemfile.saas Gemfile.saas.lock .ruby-version ./ COPY lib/fizzy.rb ./lib/fizzy.rb COPY gems ./gems/ RUN --mount=type=secret,id=GITHUB_TOKEN --mount=type=cache,id=fizzy-permabundle-${RUBY_VERSION},sharing=locked,target=/permabundle \ @@ -74,4 +76,4 @@ ENV RUBY_GC_HEAP_0_INIT_SLOTS=692636 \ # Start the server by default, this can be overwritten at runtime EXPOSE 80 443 9394 -CMD ["./bin/thrust", "./bin/rails", "server"] \ No newline at end of file +CMD ["./bin/thrust", "./bin/rails", "server"]