Prerequisites
- Docker 20.10 or later
- Docker Compose v2 or later (for Compose-based deployments)
- An accessible instance of the ATT backend API
Dockerfile
The repository includes the following multi-stage Dockerfile:Dockerfile
node:18-alpine to install dependencies with npm ci and produce the optimised static bundle via npm run build (Vite).
Serve stage — copies /app/dist into the Nginx web root (/usr/share/nginx/html) and replaces the default Nginx site configuration with the project’s nginx.conf. The container listens on port 80.
Standalone deployment
Copy and edit the environment file
.env at build time. See Environment variables for the full reference.Build the image
.env file, use --build-arg in combination with an ARG/ENV in the Dockerfile, or set them in your CI environment before building.Run the container
http://localhost. To bind a different host port, change the first number: -p 8080:80.Docker Compose deployment
The repository includes adocker-compose.yml for running the UI alongside the rest of the ATT platform:
docker-compose.yml
The Compose file joins the external network
att-orchestrator_att-network. This network is created by the ATT orchestrator stack. Start the orchestrator stack before bringing up the UI service.Start the service
Development watch mode
The Compose file includes adevelop.watch configuration. When you run:
user-interface service whenever files under ./src or package.json change. This is intended for local development iteration, not production use.
