Sha256: 2e6783f66fcd3ac48f6bf8f4bda63c4795f2ff3890cf0d6b0223bed88eb038a9
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
FROM ruby:<%= @env[:base][:ruby_version][:value] %>-alpine AS builder # Add only packages necessary to generate a new rails app RUN apk add \ build-base \ git \ postgresql-dev WORKDIR /app ## Create a Gemfile with just the Rails gem inside: RUN echo -e "source 'https://rubygems.org'\ngem 'rails', '~> <%= @env[:base][:rails_version][:value] %>'" > Gemfile RUN gem install bundler:<%= @env[:base][:bundler_version][:value] %> RUN bundle config --local && \ bundle install -j4 --retry 3 ## Use Rails to generate a new app. We'll configure it later. RUN bundle exec rails new . \ --database=postgresql \ --skip-bundle \ --skip-webpack-install FROM scratch AS export-stage ## Copy the generated files onto the host. COPY --from=builder ./app/ .
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.30 | lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/templates/stage_one/Dockerfile.tt |