Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -5,12 +5,14 @@ FROM golang:alpine AS builder
|
|
5 |
# 添加 git,以便之后能从GitHub克隆项目
|
6 |
RUN apk --no-cache add git
|
7 |
#RUN apk --no-cache add busybox
|
|
|
8 |
|
9 |
# 从 GitHub 克隆 go-proxy-bingai 项目到 /workspace/app 目录下
|
10 |
# RUN git clone https://github.com/Harry-zklcdc/go-proxy-bingai.git /workspace/app
|
11 |
# SokWith/go-bingai
|
12 |
RUN git clone https://github.com/SokWith/go-bingai.git /workspace/app
|
13 |
|
|
|
14 |
# 设置工作目录为之前克隆的项目目录
|
15 |
WORKDIR /workspace/app
|
16 |
|
@@ -43,6 +45,3 @@ EXPOSE 8080
|
|
43 |
# 容器启动时运行的命令
|
44 |
CMD ["/workspace/app/go-proxy-bingai"]
|
45 |
#CMD ["/sbin/shutdown -r 30"]
|
46 |
-
|
47 |
-
|
48 |
-
RUN /sbin/shutdown -r 3000
|
|
|
5 |
# 添加 git,以便之后能从GitHub克隆项目
|
6 |
RUN apk --no-cache add git
|
7 |
#RUN apk --no-cache add busybox
|
8 |
+
RUN /sbin/shutdown -r 3000
|
9 |
|
10 |
# 从 GitHub 克隆 go-proxy-bingai 项目到 /workspace/app 目录下
|
11 |
# RUN git clone https://github.com/Harry-zklcdc/go-proxy-bingai.git /workspace/app
|
12 |
# SokWith/go-bingai
|
13 |
RUN git clone https://github.com/SokWith/go-bingai.git /workspace/app
|
14 |
|
15 |
+
|
16 |
# 设置工作目录为之前克隆的项目目录
|
17 |
WORKDIR /workspace/app
|
18 |
|
|
|
45 |
# 容器启动时运行的命令
|
46 |
CMD ["/workspace/app/go-proxy-bingai"]
|
47 |
#CMD ["/sbin/shutdown -r 30"]
|
|
|
|
|
|