maxun icon indicating copy to clipboard operation
maxun copied to clipboard

After modifying the Dockerfile, it ran successfully

Open 602387193c opened this issue 1 year ago • 0 comments

this is the modified Dockerfile:

FROM node:18-slim

# 安装必要的构建依赖
RUN apt-get update && \
    apt-get install -y \
    python3 \
    build-essential \
    git && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy package files
COPY package*.json ./
COPY maxun-core ./maxun-core

# Install dependencies
RUN npm install

# Copy frontend source code and config
COPY src ./src
COPY index.html ./
COPY vite.config.js ./
COPY tsconfig.json ./

# Expose the frontend port
EXPOSE 5173

# Start the frontend using the client script
CMD ["npm", "run", "client", "--", "--host"]

602387193c avatar Nov 05 '24 14:11 602387193c