diff --git a/Dockerfile b/Dockerfile index 9be281430..1a9485057 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY ui/package-lock.json . RUN npm i COPY ui . RUN npm run build - +RUN npm run build-ent FROM golang:1.16-alpine AS builder # Set necessary environment variables needed for our image. diff --git a/ui/package.json b/ui/package.json index 73f2aae7e..84730a74d 100644 --- a/ui/package.json +++ b/ui/package.json @@ -49,7 +49,8 @@ "scripts": { "start": "craco start", "start-ent": "./node_modules/.bin/env-cmd -f .env.enterprise craco start", - "build": "./node_modules/.bin/env-cmd -f .env.basic craco build & BUILD_PATH='./build-ent' ./node_modules/.bin/env-cmd -f .env.enterprise craco build", + "build": "./node_modules/.bin/env-cmd -f .env.basic craco build", + "build-ent": "BUILD_PATH='./build-ent' ./node_modules/.bin/env-cmd -f .env.enterprise craco build", "test": "craco test", "eject": "craco eject" },