working version
This commit is contained in:
30
backup/_data/Dockerfile.dev
Executable file
30
backup/_data/Dockerfile.dev
Executable file
@@ -0,0 +1,30 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user