| # Use the official Node.js image as the base image | |
| # 基于 node:18 镜像 | |
| FROM node:18 | |
| # 更新 apt-get 并安装字体 | |
| RUN apt-get update && apt-get install -y \ | |
| fonts-wqy-zenhei # 安装文泉驿正黑字体 | |
| RUN apt-get install -y xfonts-wqy # 安装文泉驿点阵宋体 | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Clone the code from the GitHub repository | |
| #RUN git clone https://github.com/SokWith/getbing-cct-cookie . | |
| COPY . . | |
| # Install the dependencies | |
| #RUN npm install axios | |
| RUN npm install | |
| # Expose the port that your application is listening on | |
| EXPOSE 7860 | |
| # Start the application | |
| CMD ["node", "index.js"] |