File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,22 @@ FROM golang:alpine as builder
3
3
WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server
4
4
COPY . .
5
5
6
- RUN go env -w GO111MODULE=on
7
- RUN go env -w GOPROXY=https://goproxy.cn,direct
8
- RUN go env -w CGO_ENABLED=0
9
- RUN go env
10
- RUN go mod tidy
11
- RUN go build -o server .
6
+ RUN go env -w GO111MODULE=on \
7
+ && go env -w GOPROXY=https://goproxy.cn,direct \
8
+ && go env -w CGO_ENABLED=0 \
9
+ && go env \
10
+ && go mod tidy \
11
+ && go build -o server .
12
12
13
13
FROM alpine:latest
14
+
14
15
LABEL MAINTAINER=
"SliverHorn@[email protected] "
15
16
16
17
WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server
17
18
18
- COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server ./
19
+ COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server/server ./
20
+ COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server/resource ./resource/
21
+ COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server/config.docker.yaml ./
19
22
20
23
EXPOSE 8888
21
-
22
24
ENTRYPOINT ./server -c config.docker.yaml
You can’t perform that action at this time.
0 commit comments