Public Repository

Last pushed: 2 years ago
Short Description
v1.01 clears the build cache
Full Description

FROM iron/base:edge

#Update and install base packages
RUN apk update && apk upgrade

#Setting the working directory and bringing in Gemfile and Gemfile.lock
COPY Gemfile* /app/

#adding tools to make ruby life easier. Some of these are most likely not needed, but I left them in to be safe.
RUN apk update && apk --update add ruby ruby-irb ruby-json ruby-rake \
ruby-bigdecimal ruby-io-console libstdc++ tzdata postgresql-client nodejs

#This adds the dependencies in a temp group, then installs and the ndeletes the group
RUN apk --update add --virtual build-dependencies build-base ruby-dev openssl-dev \
postgresql-dev libc-dev linux-headers && \
gem install bundler && \
cd /app ; bundle install --without development test && \
apk del build-dependencies

#clear the build cache
RUN rm -rf /var/cache/apk/*

Docker Pull Command