Files
parcer/Dockerfile

22 lines
396 B
Docker
Raw Normal View History

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
RUN npm install
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-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
EXPOSE 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"]