Merge pull request #52179 from Uaitt/Dockerfile-FromAsCasing-offenses
Fix `FromAsCasing` offense while building a Dockerfile
This commit is contained in:
commit
bc67961679
@ -8,7 +8,7 @@
|
||||
|
||||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
|
||||
ARG RUBY_VERSION=<%= gem_ruby_version %>
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim as base
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
|
||||
|
||||
# Rails app lives here
|
||||
WORKDIR /rails
|
||||
@ -25,7 +25,7 @@ ENV RAILS_ENV="production" \
|
||||
BUNDLE_WITHOUT="development"
|
||||
|
||||
# Throw-away build stage to reduce size of final image
|
||||
FROM base as build
|
||||
FROM base AS build
|
||||
|
||||
# Install packages needed to build gems<%= using_node? ? " and node modules" : "" %>
|
||||
RUN apt-get update -qq && \
|
||||
|
4
railties/test/fixtures/Dockerfile.test
vendored
4
railties/test/fixtures/Dockerfile.test
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
|
||||
ARG RUBY_VERSION=3.2.2
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim as base
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
|
||||
|
||||
# Rails app lives here
|
||||
WORKDIR /rails
|
||||
@ -18,7 +18,7 @@ ENV RAILS_ENV="production" \
|
||||
BUNDLE_WITHOUT="development"
|
||||
|
||||
# Throw-away build stage to reduce size of final image
|
||||
FROM base as build
|
||||
FROM base AS build
|
||||
|
||||
# Install packages needed to build gems
|
||||
RUN apt-get install --no-install-recommends -y build-essential git pkg-config
|
||||
|
Loading…
Reference in New Issue
Block a user