Specify a single base image for builder and production (#15678)

This prevents missing the second FROM ruby: line for production (I
think I've tripped over this twice now).
This commit is contained in:
Daniel Uber 2021-12-06 11:27:12 -06:00 committed by GitHub
parent 393d678718
commit b516f7cb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,7 @@
FROM quay.io/forem/ruby:3.0.2 as builder
FROM quay.io/forem/ruby:3.0.2 as base
FROM base as builder
USER root
@ -49,7 +52,7 @@ RUN echo $(date -u +'%Y-%m-%dT%H:%M:%SZ') >> "${APP_HOME}"/FOREM_BUILD_DATE && \
RUN rm -rf node_modules vendor/assets spec
## Production
FROM quay.io/forem/ruby:3.0.2 as production
FROM base as production
USER root