Skip to content

Commit a95dbe4

Browse files
committed
fix: Dockerfile
1 parent d6cc929 commit a95dbe4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ WORKDIR /app
1414
# 克隆GitHub仓库到工作目录
1515
RUN 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
2118
RUN yarn && yarn add puppeteer
2219

@@ -31,12 +28,6 @@ RUN mkdir -p /tmp/drpys && \
3128
# 但是无法用pm2
3229
FROM 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
# 创建一个工作目录
4132
WORKDIR /app
4233

@@ -61,7 +52,7 @@ RUN apk add --no-cache python3 \
6152
# 激活python3虚拟环境并安装依pip3赖
6253
RUN 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
# 暴露应用程序端口(根据您的项目需求调整)
6758
EXPOSE 5757

0 commit comments

Comments
 (0)