Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
Update console Dockerfile to allow environment to be passed in build
Ronald A. Richardson077a4298b9d4
diff --git a/console/Dockerfile b/console/Dockerfileindex c9784e4c..80dfb872 100644--- a/console/Dockerfile+++ b/console/Dockerfile@@ -8,6 +8,9 @@ WORKDIR /appRUN mkdir -p ~/.pnpmENV PNPM_HOME /root/.pnpm+# Set environment+ARG ENVIRONMENT=production+# Add the pnpm global bin to the PATHENV PATH /root/.pnpm/bin:$PATH@@ -33,7 +36,7 @@ RUN pnpm installCOPY console .# Build the application-RUN pnpm build+RUN pnpm build --environment $ENVIRONMENT# ---- Serve Stage ----FROM nginx:alpinediff --git a/console/package.json b/console/package.jsonindex 7218ebd5..487b21da 100644--- a/console/package.json+++ b/console/package.json@@ -1,6 +1,6 @@{"name": "@fleetbase/console",- "version": "0.4.3",+ "version": "0.4.4","private": true,"description": "Fleetbase Console","repository": "https://github.com/fleetbase/fleetbase",@@ -12,7 +12,7 @@},"scripts": {"prebuild": "node prebuild.js",- "build": "pnpm run prebuild && ember build --environment=production",+ "build": "pnpm run prebuild && ember build","lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"","lint:css": "stylelint \"**/*.css\"","lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",