File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
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
Original file line number Diff line number Diff line change 1
- FROM node:12.16.1
1
+ FROM node:16
2
2
3
3
WORKDIR /gva_web/
4
4
COPY . .
5
5
6
- RUN npm install
7
- RUN npm run build
6
+ RUN yarn && yarn build
8
7
9
8
FROM nginx:alpine
10
9
LABEL MAINTAINER=
"SliverHorn@[email protected] "
You can’t perform that action at this time.
0 commit comments