Sha256: 8b34436fba614515509e5f4ca43eac5c18065126ff0b3365e97378d2b82883fb

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

# Switchery-rails gem Dockerfile
#
# How to use it
# =============
#
# Visit https://blog.zedroot.org/2015/04/30/using-docker-to-maintain-a-ruby-gem/

# ~~~~ Image base ~~~~
# Base image with the latest Ruby only
FROM ruby:3.0.3-slim
MAINTAINER Guillaume Hain zedtux@zedroot.org


# ~~~~ Set up the environment ~~~~
ENV DEBIAN_FRONTEND noninteractive

RUN mkdir -p /gem/
WORKDIR /gem/
ADD . /gem/

# ~~~~ OS Maintenance & Rails Preparation ~~~~
# Rubygems and Bundler
RUN apt-get update && \
  apt-get install -y git build-essential curl && \
  touch ~/.gemrc && \
  echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
  gem install rubygems-update && \
  update_rubygems && \
  gem install bundler && \
  bundle install && \
  apt-get remove --purge -y build-essential && \
  apt-get autoclean -y && \
  apt-get clean

# Import the gem source code
VOLUME .:/gem/


ENTRYPOINT ["bundle", "exec"]
CMD ["rake", "-T"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
switchery-rails-0.8.2.0 Dockerfile