From 184a5b4e0fe235d26b0859e840e83e0f440a854a Mon Sep 17 00:00:00 2001 From: Chris Rai Date: Tue, 13 Jan 2026 21:31:18 -0500 Subject: [PATCH] Fix build script, update README with build instructions --- README.md | 11 ++--------- package.json | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dbf79f6..451bc16 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,7 @@ Front-end web application for OTA administration. ## Setup ```bash -# Install dependencies npm install - -# Run locally npm start # Access at http://localhost:3000 ``` @@ -16,13 +13,9 @@ npm start ## Build & Deploy ```bash -# Build for mini environment -npm run build - -# Build Docker image +# Build and push Docker image docker build --build-arg ENVIRONMENT=mini -t gitea.mini.cloud.fiskerinc.com/admin/ota-admin-portal:latest . - -# Push to Gitea registry +docker login gitea.mini.cloud.fiskerinc.com -u admin docker push gitea.mini.cloud.fiskerinc.com/admin/ota-admin-portal:latest ``` diff --git a/package.json b/package.json index e88ea88..61b24be 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "scripts": { "start": "env-cmd -f .env.local react-scripts start", "build": "env-cmd -f .env.mini react-scripts build", + "build:mini": "env-cmd -f .env.mini react-scripts build", "build:local": "env-cmd -f .env.local react-scripts build", "test": "env-cmd -f .env.local react-scripts test --no-cache", "test:coverage": "npm test -- --coverage --watchAll=false --no-cache"