-
Theo Cushion authored
Without this it risks some bundler dependencies being installed in the user-home which then get handled differently for Dockerfiles that inherit this one
Theo Cushion authoredWithout this it risks some bundler dependencies being installed in the user-home which then get handled differently for Dockerfiles that inherit this one
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 760 B
FROM ruby:3.2.2-slim-bullseye
# Bootstrap scripts will also be used by stage 2 (rails-runtime-base-image).
COPY /app/bootstrap*sh /app/
RUN chmod +x /app/bootstrap*sh
# Install OS packages required for the gem build environment.
RUN /app/bootstrap-apt-upgrade.sh && \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
default-libmysqlclient-dev \
git \
libpq-dev \
pkg-config && \
/app/bootstrap-apt-clean.sh
# Prepare bundle for the gem build environment.
RUN /app/bootstrap-app-dir.sh
USER nexus
WORKDIR /app
COPY --chown=nexus:nexus Gemfile Gemfile.lock ./
COPY --chown=nexus:nexus jetbrains_gems/*.gem /tmp/
RUN /app/bootstrap-app-bundle.sh && \
gem install --user-install /tmp/*.gem