FROM node:18-alpine # Métadonnées LABEL maintainer="LeDiscord Team" LABEL version="1.0" LABEL description="LeDiscord Frontend - Environnement Development" WORKDIR /app # Variables d'environnement pour le développement ENV NODE_ENV=development ENV VITE_ENVIRONMENT=development # Copy package files first for better caching COPY package*.json ./ # Install dependencies RUN npm ci # Copy application files COPY . . # Copy development environment file COPY .env.development .env # Expose port EXPOSE 5173 # Run the application in development mode CMD ["npm", "run", "dev"]