feat: add GPS tracking with Traccar integration
- Add GPS module with Traccar client service for device management - Add driver enrollment flow with QR code generation - Add real-time location tracking on driver profiles - Add GPS settings configuration in admin tools - Add Auth0 OpenID Connect setup script for Traccar - Add deployment configs for production server - Update nginx configs for SSL on GPS port 5055 - Add timezone setting support - Various UI improvements and bug fixes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,23 +12,11 @@ COPY package*.json ./
|
||||
# Install dependencies
|
||||
RUN npm ci
|
||||
|
||||
# Copy application source
|
||||
# Copy application source (includes .env.production with correct values)
|
||||
COPY . .
|
||||
|
||||
# Accept build-time environment variables
|
||||
# These are embedded into the build by Vite
|
||||
ARG VITE_API_URL
|
||||
ARG VITE_AUTH0_DOMAIN
|
||||
ARG VITE_AUTH0_CLIENT_ID
|
||||
ARG VITE_AUTH0_AUDIENCE
|
||||
|
||||
# Set environment variables for build
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
ENV VITE_AUTH0_DOMAIN=$VITE_AUTH0_DOMAIN
|
||||
ENV VITE_AUTH0_CLIENT_ID=$VITE_AUTH0_CLIENT_ID
|
||||
ENV VITE_AUTH0_AUDIENCE=$VITE_AUTH0_AUDIENCE
|
||||
|
||||
# Build the application (skip tsc check, vite build only)
|
||||
# Build the application
|
||||
# Vite automatically uses .env.production for production builds
|
||||
RUN npx vite build
|
||||
|
||||
# ==========================================
|
||||
|
||||
Reference in New Issue
Block a user