exable324 commited on
Commit
609f5e9
·
verified ·
1 Parent(s): ec1432d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,9 +1,12 @@
1
  # Stage 1: 克隆代码并构建前端
2
  FROM node:20-slim AS builder
3
 
4
- RUN apt-get update && apt-get install -y --no-install-recommends git && \
5
  rm -rf /var/lib/apt/lists/*
6
 
 
 
 
7
  WORKDIR /build
8
  RUN git clone https://github.com/Dreamy-rain/gemini-business2api.git .
9
 
@@ -67,4 +70,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
67
  CMD curl -f http://localhost:7860/admin/health || exit 1
68
 
69
  # 启动服务
70
- CMD ["./entrypoint.sh"]
 
1
  # Stage 1: 克隆代码并构建前端
2
  FROM node:20-slim AS builder
3
 
4
+ RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
5
  rm -rf /var/lib/apt/lists/*
6
 
7
+ # 解决 SSL 证书验证问题
8
+ ENV GIT_SSL_NO_VERIFY=1
9
+
10
  WORKDIR /build
11
  RUN git clone https://github.com/Dreamy-rain/gemini-business2api.git .
12
 
 
70
  CMD curl -f http://localhost:7860/admin/health || exit 1
71
 
72
  # 启动服务
73
+ CMD ["./entrypoint.sh"]