Sha256: 605c5fd88f4985279096f947fbf0c99a40165b883c7a086580f1207d10fa5029
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
# syntax=docker/dockerfile:1 FROM ruby:3.0-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