2024-11-01 16:04:36 +05:30
|
|
|
FROM node:18-alpine
|
2024-10-29 23:42:34 +05:30
|
|
|
|
2024-10-30 02:06:07 +05:30
|
|
|
WORKDIR /app
|
|
|
|
|
|
2024-11-01 16:04:36 +05:30
|
|
|
# Copy package files
|
|
|
|
|
COPY package*.json ./
|
2024-10-29 23:42:34 +05:30
|
|
|
COPY maxun-core ./maxun-core
|
|
|
|
|
|
2024-11-01 16:04:36 +05:30
|
|
|
# Install dependencies
|
2024-12-23 00:25:26 +05:30
|
|
|
RUN npm install --legacy-peer-deps
|
2024-11-01 07:40:06 +05:30
|
|
|
|
2024-11-01 16:04:36 +05:30
|
|
|
# Copy frontend source code and config
|
2024-10-29 23:42:34 +05:30
|
|
|
COPY src ./src
|
2024-12-23 01:15:11 +05:30
|
|
|
COPY public ./public
|
2024-11-01 16:04:36 +05:30
|
|
|
COPY index.html ./
|
2024-10-29 23:42:34 +05:30
|
|
|
COPY vite.config.js ./
|
2024-10-30 02:06:07 +05:30
|
|
|
COPY tsconfig.json ./
|
|
|
|
|
|
2024-11-01 16:04:36 +05:30
|
|
|
# Expose the frontend port
|
2024-12-11 14:06:08 +05:30
|
|
|
EXPOSE ${FRONTEND_PORT:-5173}
|
2024-10-29 23:42:34 +05:30
|
|
|
|
2024-11-01 16:04:36 +05:30
|
|
|
# Start the frontend using the client script
|
|
|
|
|
CMD ["npm", "run", "client", "--", "--host"]
|