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

Version Path
orchestration-0.5.1 lib/orchestration/templates/Dockerfile.erb
orchestration-0.5.0 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.21 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.20 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.19 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.18 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.17 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.16 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.15 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.14 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.13 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.12 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.10 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.9 lib/orchestration/templates/Dockerfile.erb
orchestration-0.4.8 lib/orchestration/templates/Dockerfile.erb