File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ WORKDIR /app
1414# 克隆GitHub仓库到工作目录
1515RUN git clone https://github.com/hjdhnx/drpy-node.git .
1616
17- # 设置npm镜像为npmmirror
18- RUN npm config set registry https://registry.npmmirror.com
19-
2017# 安装项目依赖项和puppeteer
2118RUN yarn && yarn add puppeteer
2219
@@ -31,12 +28,6 @@ RUN mkdir -p /tmp/drpys && \
3128# 但是无法用pm2
3229FROM alpine:latest AS runner
3330
34- # OCI labels: https://github.com/opencontainers/image-spec/blob/main/annotations.md
35- LABEL org.opencontainers.image.authors="hjdhnx"
36- LABEL org.opencontainers.image.licenses="GPL-3.0"
37- LABEL org.opencontainers.image.title="drpyS"
38- LABEL org.opencontainers.image.source="https://github.com/hjdhnx/drpy-node"
39-
4031# 创建一个工作目录
4132WORKDIR /app
4233
@@ -61,7 +52,7 @@ RUN apk add --no-cache python3 \
6152# 激活python3虚拟环境并安装依pip3赖
6253RUN python3 -m venv /app/.venv && \
6354 . /app/.venv/bin/activate && \
64- pip3 install -r /app/spider/py/base/requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple
55+ pip3 install -r /app/spider/py/base/requirements.txt
6556
6657# 暴露应用程序端口(根据您的项目需求调整)
6758EXPOSE 5757
You can’t perform that action at this time.
0 commit comments