Sha256: c0d9a78f77bb50c443182d6ebdfeaebde40ef8ac299f100658ad0dacefa0354b
Contents?: true
Size: 1.55 KB
Versions: 15
Compression:
Stored size: 1.55 KB
Contents
FROM ruby:<%= ruby_version %> ARG BUNDLE_BITBUCKET__ORG ARG BUNDLE_GITHUB__COM ARG GIT_COMMIT RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ nodejs \ 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 %> ADD .build/context.tar . <% if defined?(Webpacker) %>RUN . /root/.bashrc && NODE_ENV=production RAILS_ENV=production yarn install && NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=abc123 bundle exec rake assets:precompile<% elsif Rake::Task.tasks.map(&:name).include?('assets:precompile') %>RUN NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=abc123 bundle exec rake assets:precompile<% end %> RUN echo "${GIT_COMMIT}" > /app/GIT_COMMIT HEALTHCHECK --interval=<%= healthcheck['interval'] %> \ --timeout=<%= healthcheck['timeout'] %> \ --start-period=<%= healthcheck['start_period'] %> \ --retries=<%= healthcheck['retries'] %> \ CMD <%= healthcheck['test'].to_json %> ENTRYPOINT <%= entrypoint.to_json %> CMD <%= command.to_json %>
Version data entries
15 entries across 15 versions & 1 rubygems