2025-12-04 11:25:21 +05:30
|
|
|
FROM node:18-alpine AS builder
|
2025-05-29 20:38:44 +05:30
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Copy package files
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
|
RUN npm install --legacy-peer-deps
|
|
|
|
|
|
|
|
|
|
# Copy frontend source code and config
|
|
|
|
|
COPY src ./src
|
|
|
|
|
COPY public ./public
|
|
|
|
|
COPY index.html ./
|
|
|
|
|
COPY vite.config.js ./
|
|
|
|
|
COPY tsconfig.json ./
|
|
|
|
|
|
|
|
|
|
# Expose the frontend port
|
|
|
|
|
EXPOSE ${FRONTEND_PORT:-5173}
|
|
|
|
|
|
|
|
|
|
# Start the frontend using the client script
|
|
|
|
|
CMD ["npm", "run", "client", "--", "--host"]
|