Sha256: 057022063d988ac8a09687ed3b3392a00be0b369f83ece28f663b9526ff1d7a9
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
FROM ruby:<%= ruby_version %> ARG BUNDLE_BITBUCKET__ORG ARG BUNDLE_GITHUB__COM ARG GIT_COMMIT ENV NODE_MAJOR=20 RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ gosu \ sendmail \ cron \ ca-certificates \ curl \ gnupg \ && mkdir -p /etc/apt/keyrings \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && apt-get update \ && apt-get install nodejs \ && 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 \ && npm config set user 0 \ && npm config set unsafe-perm true \ && npm install -g yarn<% end %> WORKDIR /app COPY .build/Gemfile .build/Gemfile.lock ./ RUN bundle config set deployment 'true' \ && bundle config set without 'development test' \ && bundle install 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=placeholder-secret bundle exec rake assets:precompile<% elsif Rake::Task.tasks.map(&:name).include?('assets:precompile') %>RUN NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=placeholder-secret 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orchestration-0.7.11 | lib/orchestration/templates/Dockerfile.erb |