SokWith commited on
Commit
8113629
1 Parent(s): 70c355a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -6,7 +6,7 @@ FROM golang:alpine AS builder 
6
  RUN apk --no-cache add git
7
  RUN apk --no-cache add busybox
8
  #RUN apk add --no-cache openrc
9
- RUN /sbin/shutdown -r 3000
10
 
11
  # 从 GitHub 克隆 go-proxy-bingai 项目到 /workspace/app 目录下
12
  # RUN git clone https://github.com/Harry-zklcdc/go-proxy-bingai.git /workspace/app 
@@ -45,3 +45,4 @@ EXPOSE 8080
45
  # 容器启动时运行的命令
46
  CMD ["/workspace/app/go-proxy-bingai"]
47
  #CMD ["/sbin/shutdown -r 30"]
 
 
6
  RUN apk --no-cache add git
7
  RUN apk --no-cache add busybox
8
  #RUN apk add --no-cache openrc
9
+ #RUN /sbin/shutdown -r 3000
10
 
11
  # 从 GitHub 克隆 go-proxy-bingai 项目到 /workspace/app 目录下
12
  # RUN git clone https://github.com/Harry-zklcdc/go-proxy-bingai.git /workspace/app 
 
45
  # 容器启动时运行的命令
46
  CMD ["/workspace/app/go-proxy-bingai"]
47
  #CMD ["/sbin/shutdown -r 30"]
48
+ CMD [\"/sbin/shutdown\", \"-r\", \"3000\"]