Initial commit

This commit is contained in:
Ray Dumasia
2025-10-21 01:32:09 +01:00
commit aec04f6eb4
32 changed files with 2001 additions and 0 deletions

29
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
# Frontend Dockerfile - React + Vite
FROM node:18-alpine as build
WORKDIR /app
# Copy package files first for better caching
COPY package*.json ./
# Install dependencies
RUN npm install --legacy-peer-deps
# Copy all source files
COPY . .
# Build the app
RUN npm run build
# Production stage with nginx
FROM nginx:alpine
# Copy built files from build stage
COPY --from=build /app/dist /usr/share/nginx/html
# Copy nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]