Sha256: 031d826354685b57578c78e49b7af00197c8782bf90be950f56fb10515e90634
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 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 \ postgresql-dev WORKDIR /app ## Create a Gemfile with just the Rails gem inside: RUN echo -e "source 'https://rubygems.org'\ngem 'rails', '~> 7.0'" > 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=postgresql \ --skip-bundle \ --skip-webpack-install RUN rm config/master.key FROM scratch AS export-stage ## Copy the generated files onto the host. COPY --from=builder ./app/ .
Version data entries
2 entries across 1 versions & 1 rubygems