Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vej-ananas committed Jul 4, 2024
1 parent 3f965df commit 6ac5e14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/client-asset-sg/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit 6ac5e14

Please sign in to comment.