2 FROM ruby:$RUBY_VERSION-bookworm
4 ENV DEBIAN_FRONTEND=noninteractive
6 # Install system packages then clean up to minimize image size
8 && apt-get install --no-install-recommends -y \
11 default-jre-headless \
37 && rm -rf /var/lib/apt/lists/* # Replace with `apt-get dist-clean` after upgrading to Debian 13 (Trixie)
39 # Install yarn globally
40 RUN npm install --global yarn
42 ENV DEBIAN_FRONTEND=dialog
48 # Install Ruby packages
49 COPY Gemfile Gemfile.lock /app/
52 # Install NodeJS packages using yarn
53 COPY package.json yarn.lock /app/
54 COPY bin/yarn /app/bin/
55 RUN bundle exec bin/yarn install
57 # Copy and set entrypoint
58 COPY docker/entrypoint.sh /entrypoint.sh
59 RUN chmod +x /entrypoint.sh
61 ENTRYPOINT ["/entrypoint.sh"]