Sha256: d2630a8ecc65416aab5ec41f910cc08686dde0c768f92650a697e9d68ffb4645

Contents?: true

Size: 994 Bytes

Versions: 3

Compression:

Stored size: 994 Bytes

Contents

FROM darthjee/ruby_gems:0.2.3 as base
FROM darthjee/scripts:0.1.2 as scripts

######################################

FROM base as builder

COPY --chown=app ./ /home/app/app/
COPY --chown=app:app --from=scripts /home/scripts/builder/bundle_builder.sh /usr/local/sbin/

ENV HOME_DIR /home/app
RUN bundle_builder.sh

#######################
#FINAL IMAGE
FROM base
RUN mkdir lib/arstotzka -p

USER root

COPY --chown=app:app --from=builder /home/app/bundle/gems /usr/local/bundle/gems
COPY --chown=app:app --from=builder /home/app/bundle/cache /usr/local/bundle/cache
COPY --chown=app:app --from=builder /home/app/bundle/specifications /usr/local/bundle/specifications
COPY --chown=app:app --from=builder /home/app/bundle/bin /usr/local/bundle/bin
COPY --chown=app:app --from=builder /home/app/bundle/extensions /usr/local/bundle/extensions

COPY --chown=app ./*.gemspec ./Gemfile /home/app/app/
COPY --chown=app ./lib/arstotzka/version.rb /home/app/app/lib/arstotzka/
USER app
RUN bundle install

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arstotzka-1.4.4 Dockerfile
arstotzka-1.4.3 Dockerfile
arstotzka-1.4.2 Dockerfile