Sha256: fc727153d619746a85113e2dab6c3a33a5066d623f8469820656028bc111de7c

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 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 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 %>
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bundle", "exec", "unicorn", "-c", "/app/config/unicorn.rb"]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
orchestration-0.3.17 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.16 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.15 lib/orchestration/templates/Dockerfile.erb
orchestration-0.3.14 lib/orchestration/templates/Dockerfile.erb