Skip to content
Snippets Groups Projects
Dockerfile 711 B
Newer Older
FROM ruby:2.7.1-slim

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        cmake \
        pkg-config \
        default-libmysqlclient-dev \
        nodejs \
        curl \
        git \
        ruby-dev \
        telnet \
        nano \
        build-essential \
        cmake pkg-config \
        libpq-dev \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN mkdir /app
RUN adduser nexus --system --group -u 1000 && mkdir -p /app
RUN chown -R nexus:nexus /app

USER nexus

WORKDIR /app
COPY --chown=nexus:nexus Gemfile Gemfile.lock ./
RUN bundle config --local build.sassc --disable-march-tune-native && gem install bundler -v 2.1 && bundle install --jobs 20 --retry 5