Sha256: 43154e362acd7e642858acd8414006f2166e8c462925703b2d4cdbad1de4bd87

Contents?: true

Size: 911 Bytes

Versions: 1

Compression:

Stored size: 911 Bytes

Contents

ARG BUNDLER_VERSION=2.0.2
ARG RUBY_VERSION=2.7.1
ARG APP_ROOT=/gem

#######################################
###           Builder
FROM ruby:${RUBY_VERSION}-alpine AS build-env

ARG APP_ROOT

ENV BUNDLE_APP_CONFIG="$APP_ROOT/.bundle"
ARG PACKAGES="curl tzdata less git"
RUN mkdir $APP_ROOT
WORKDIR $APP_ROOT

RUN apk update \
    && apk upgrade \
    && apk add --update --no-cache $PACKAGES

#######################################
###           Development
FROM build-env AS development

ARG BUNDLER_VERSION
ARG APP_ROOT
ENV BUNDLE_APP_CONFIG="$APP_ROOT/.bundle"

WORKDIR $APP_ROOT

RUN apk add --update --no-cache \
  build-base \
  git \
  tzdata \
  less

RUN gem install bundler:$BUNDLER_VERSION

COPY . $APP_ROOT

RUN bundle install -j4 --retry 3 \
  && rm -rf /usr/local/bundle/cache/*.gem \
  && find /usr/local/bundle/gems/ -name "*.c" -delete \
  && find /usr/local/bundle/gems/ -name "*.o" -delete


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
verbalize-2.3.1 Dockerfile