|
@ -12,20 +12,17 @@ RUN sh ./server-handle.sh |
|
|
RUN rm -f server-handle.sh |
|
|
RUN rm -f server-handle.sh |
|
|
RUN cat ./config.yaml |
|
|
RUN cat ./config.yaml |
|
|
|
|
|
|
|
|
RUN go build -o gva cmd/main.go |
|
|
|
|
|
RUN go env && go build -o server . |
|
|
RUN go env && go build -o server . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:latest |
|
|
FROM alpine:latest |
|
|
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com" |
|
|
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com" |
|
|
|
|
|
|
|
|
WORKDIR /go/src/gin-vue-admin |
|
|
WORKDIR /go/src/gin-vue-admin |
|
|
|
|
|
|
|
|
COPY --from=0 /go/src/gin-vue-admin/gva ./ |
|
|
|
|
|
COPY --from=0 /go/src/gin-vue-admin/server ./ |
|
|
COPY --from=0 /go/src/gin-vue-admin/server ./ |
|
|
COPY --from=0 /go/src/gin-vue-admin/config.yaml ./ |
|
|
COPY --from=0 /go/src/gin-vue-admin/config.yaml ./ |
|
|
COPY --from=0 /go/src/gin-vue-admin/resource ./resource |
|
|
COPY --from=0 /go/src/gin-vue-admin/resource ./resource |
|
|
|
|
|
|
|
|
EXPOSE 8888 |
|
|
EXPOSE 8888 |
|
|
|
|
|
|
|
|
ENTRYPOINT ./gva initdb && ./server |
|
|
|
|
|
|
|
|
ENTRYPOINT ./server |