Files
parcer/Dockerfile
2024-12-23 00:25:26 +05:30

22 lines
433 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
COPY maxun-core ./maxun-core
# Install dependencies
RUN npm install --legacy-peer-deps
# Copy frontend source code and config
COPY src ./src
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"]