Sha256: 32de8ebc8a5f9cf9fb92961d888d48f62fe398f34030c602eed8e0c4aeeb3641

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

FROM ruby:<%= ruby_version %>
ARG BUNDLE_BITBUCKET__ORG
ARG BUNDLE_GITHUB__COM
RUN apt-get update \
 && apt-get install -y node.js gosu sendmail \
 && rm -rf /var/lib/apt/lists/* \
 && gem install bundler \
 && mkdir /app<%if defined?(Webpacker) %> \
 && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash \
 && . /root/.bashrc \
 && nvm install 10.11.0 \
 && npm install -g yarn<% end %>
WORKDIR /app
COPY .build/Gemfile .build/Gemfile.lock ./
RUN bundle install --without development test --deployment
<% if defined?(Webpacker) %>
COPY .build/package.json .build/yarn.lock ./
RUN . /root/.bashrc && yarn install
<% end %>
COPY entrypoint.sh /
ADD .build/context.tar.gz .
<% if defined?(Webpacker) %>RUN . /root/.bashrc && NODE_ENV=production RAILS_ENV=production yarn install && NODE_ENV=production RAILS_ENV=production bundle exec rake assets:precompile<% elsif Rake::Task.tasks.map(&:name).include?('assets:precompile') %>RUN NODE_ENV=production RAILS_ENV=production bundle exec rake assets:precompile<% end %>
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bundle", "exec", "unicorn", "-c", "/app/config/unicorn.rb"]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
orchestration-0.3.13 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.12 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.11 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.10 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.9 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.8 lib/orchestration/templates/Dockerfile.erb