Files
parcer/Dockerfile

23 lines
492 B
Docker
Raw Normal View History

2025-01-12 20:14:28 +05:30
FROM --platform=$BUILDPLATFORM node:18-alpine AS builder
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"]