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:
parent
393d678718
commit
b516f7cb5a
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue