Initial commit of VIZ 3D project

This commit is contained in:
balaji
2026-06-10 16:10:18 +05:30
commit 08aea85c2f
37 changed files with 13118 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
# Base image
FROM node:20-alpine AS base
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Development stage
FROM base AS development
# Copy all project files
COPY . .
# Expose Vite's default port
EXPOSE 3000
# Run the development server
CMD ["npm", "run", "dev"]
# Build stage
FROM base AS build
COPY . .
RUN npm run build
# Production stage
FROM nginx:alpine AS production
# Copy built assets from the build stage to Nginx
COPY --from=build /app/dist /usr/share/nginx/html
# Expose port 80 for Nginx
EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]