Files
archon/archon-ui-main/Dockerfile
Rasmus Widing 120eae09b2 Remove unnecessary startup delay script from frontend Dockerfile
- Rolled back to match main branch Dockerfile
- Removed 3-second sleep script that was added for backend readiness
- Container now runs npm directly without intermediate script
- Tested and verified all services start correctly without the delay
2025-08-18 12:35:41 +03:00

26 lines
577 B
Docker

# Simple Vite dev server setup
FROM node:18-alpine
WORKDIR /app
# Install system dependencies needed for some npm packages
RUN apk add --no-cache python3 make g++ git curl
# Copy package files
COPY package*.json ./
# Install dependencies including dev dependencies for testing
RUN npm ci
# Create coverage directory with proper permissions
RUN mkdir -p /app/coverage && chmod 777 /app/coverage
# Copy source code
COPY . .
# Expose Vite's default port
EXPOSE 5173
# Start Vite dev server with host binding for Docker
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]