Bake frontend version as root during image build
Build and publish frontend / publish (push) Successful in 39s
Build and publish frontend / publish (push) Successful in 39s
This commit is contained in:
@@ -4,6 +4,7 @@ ARG FRONTEND_VERSION
|
||||
RUN test -n "$FRONTEND_VERSION"
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
USER root
|
||||
RUN sed -i "s/__FRONTEND_VERSION__/${FRONTEND_VERSION}/g" /usr/share/nginx/html/index.html
|
||||
|
||||
USER 101
|
||||
|
||||
Reference in New Issue
Block a user