Sign inSign up

jpksf/pg

By jpksf

Updated over 10 years ago

Image
0

172

jpksf/pg repository overview

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 WORKDIR /app 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

RUN apk add postgresql-dev

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

Tag summary

Content type

Image

Digest

Size

35.6 MB

Last updated

over 10 years ago

docker pull jpksf/pg:1