Sha256: 30d2871e9ea0755b5de42924b893bad18cfed221c391044b3f366fdfd9bd0e79
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
# syntax=docker/dockerfile:1 FROM ruby:2.7.4-alpine AS builder RUN apk add --update \ build-base \ file \ git \ tzdata \ nodejs \ yarn RUN apk add --update \ sqlite-dev RUN apk add --update \ build-base \ file \ git \ nodejs \ tzdata \ yarn WORKDIR /app ## Create a Gemfile with just the Rails gem inside: RUN echo -e "source 'https://rubygems.org'\ngem 'rails', '~> 6.1'" > Gemfile RUN gem install bundler:2.2.28 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=sqlite3 \ --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.33 | lib/roro/stacks/unstoppable_developer_styles/okonomi/languages/ruby/frameworks/rails/versions/rails_6_1/test/0/layers/_builder/Dockerfile |