From b516f7cb5ab49da8578c08b809d02166fb684a4b Mon Sep 17 00:00:00 2001 From: Daniel Uber Date: Mon, 6 Dec 2021 11:27:12 -0600 Subject: [PATCH] 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). --- Containerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 0918cca46..4dbc7199d 100644 --- a/Containerfile +++ b/Containerfile @@ -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