Sha256: 3fc54fbd330907c3db45137edd72e1052d047fab6ffd123bf59e6156a56fb4f9

Contents?: true

Size: 905 Bytes

Versions: 14

Compression:

Stored size: 905 Bytes

Contents

FROM ruby:<%= ruby_version %>

<% if ruby_version.include? 'alpine' %>
RUN apk add --update mysql-client mysql-dev postgresql-client g++ ruby-dev make
<% else %>
RUN apt-get update &&\
    apt-get -y install mysql-client postgresql-client sqlite3 nodejs --no-install-recommends &&\
    rm -rf /var/lib/apt/lists/*
<% end %>

RUN gem install bundler

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY ./Gemfile /usr/src/app/
COPY ./Gemfile.lock /usr/src/app/
RUN bundle install

COPY . /usr/src/app
COPY ./<%= PATHS.relative_from_current(PATHS.rails_directory) %>/entry-point.sh /usr/src/app/entry-point.sh
COPY ./<%= PATHS.relative_from_current(PATHS.rails_directory) %>/database.yml /usr/src/app/config/database.yml
COPY ./<%= PATHS.relative_from_current(PATHS.rails_directory) %>/secrets.yml /usr/src/app/config/secrets.yml

EXPOSE <%= application_port %>
CMD ["bash", "/usr/src/app/entry-point.sh"]

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dockerize_rails-1.2.1.beta.4 resources/rails/Dockerfile.erb
dockerize_rails-1.2.1.beta.3 resources/rails/Dockerfile.erb
dockerize_rails-1.2.1.beta.2 resources/rails/Dockerfile.erb
dockerize_rails-1.2.0.beta.1 resources/rails/Dockerfile.erb
dockerize_rails-1.1.0.beta.3 resources/rails/Dockerfile.erb
dockerize_rails-1.1.0.beta.2 resources/rails/Dockerfile.erb
dockerize_rails-1.1.0.beta.1 resources/rails/Dockerfile.erb
dockerize_rails-1.0.4.beta.1 resources/rails/Dockerfile.erb
dockerize_rails-1.0.3.beta.6 resources/rails/Dockerfile.erb
dockerize_rails-1.0.3.beta.5 resources/rails/Dockerfile.erb
dockerize_rails-1.0.3.beta.4 resources/rails/Dockerfile.erb
dockerize_rails-1.0.3.beta.3 resources/rails/Dockerfile.erb
dockerize_rails-1.0.3.beta.2 resources/rails/Dockerfile.erb
dockerize_rails-1.0.3.beta.1 resources/rails/Dockerfile.erb