|
@@ -5,7 +5,7 @@ ENV GO111MODULE on |
|
@@ -5,7 +5,7 @@ ENV GO111MODULE on |
5
|
|
5
|
|
6
|
RUN git clone http://gitlab.fjmaimaimai.com/mmm-go/gocomm.git /app/gocomm
|
6
|
RUN git clone http://gitlab.fjmaimaimai.com/mmm-go/gocomm.git /app/gocomm
|
7
|
|
7
|
|
8
|
-WORKDIR /app/ability
|
8
|
+WORKDIR /app/opp
|
9
|
|
9
|
|
10
|
COPY go.mod .
|
10
|
COPY go.mod .
|
11
|
COPY go.sum .
|
11
|
COPY go.sum .
|
|
@@ -13,7 +13,7 @@ RUN go mod download |
|
@@ -13,7 +13,7 @@ RUN go mod download |
13
|
|
13
|
|
14
|
COPY . .
|
14
|
COPY . .
|
15
|
|
15
|
|
16
|
-RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -installsuffix cgo -o ability main.go
|
16
|
+RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -installsuffix cgo -o opp main.go
|
17
|
|
17
|
|
18
|
#FROM scratch
|
18
|
#FROM scratch
|
19
|
FROM alpine:latest
|
19
|
FROM alpine:latest
|
|
@@ -22,7 +22,7 @@ RUN apk add --no-cache tzdata \ |
|
@@ -22,7 +22,7 @@ RUN apk add --no-cache tzdata \ |
22
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
22
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
23
|
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache ## 清除缓存
|
23
|
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache ## 清除缓存
|
24
|
WORKDIR /root/
|
24
|
WORKDIR /root/
|
25
|
-COPY --from=builder /app/ability .
|
25
|
+COPY --from=builder /app/opp .
|
26
|
#RUN ls -l
|
26
|
#RUN ls -l
|
27
|
-EXPOSE 8080
|
|
|
28
|
-CMD ["./ability"] |
|
|
|
|
27
|
+EXPOSE 8082
|
|
|
28
|
+CMD ["./opp"] |