From 6ac5e1449233fee347909ed52019e42f97bd32ee Mon Sep 17 00:00:00 2001 From: Jannic Veith Date: Thu, 4 Jul 2024 11:16:04 +0200 Subject: [PATCH] Fix dockerfile --- apps/client-asset-sg/docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client-asset-sg/docker/Dockerfile b/apps/client-asset-sg/docker/Dockerfile index 9e0e725f..615c37cc 100644 --- a/apps/client-asset-sg/docker/Dockerfile +++ b/apps/client-asset-sg/docker/Dockerfile @@ -1,7 +1,6 @@ -ARG APP_VERSION - FROM node:20-alpine as app-builder +ARG APP_VERSION ENV APP_VERSION=${APP_VERSION} ENV CYPRESS_INSTALL_BINARY=0 @@ -11,12 +10,13 @@ WORKDIR /app COPY . . RUN npm install -RUN sed -i 's/0.0.0-local/${APP_VERSION}/g' apps/client-asset-sg/src/assets/version.json +RUN sed -i ''s/0.0.0-local/${APP_VERSION}/g'' apps/client-asset-sg/src/assets/version.json RUN npx nx build client-asset-sg --configuration=production # final image build FROM nginx:mainline-alpine +ARG APP_VERSION ENV APP_VERSION=${APP_VERSION} WORKDIR /usr/share/nginx/html