You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
439 B

4 years ago
4 years ago
  1. FROM golang:alpine
  2. ENV GO111MODULE=on
  3. ENV GOPROXY=https://goproxy.io,direct
  4. WORKDIR /go/src/gin-vue-admin
  5. COPY . .
  6. RUN go env && go build -o server .
  7. FROM alpine:latest
  8. LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
  9. WORKDIR /go/src/gin-vue-admin
  10. COPY --from=0 /go/src/gin-vue-admin/server ./
  11. COPY --from=0 /go/src/gin-vue-admin/config.yaml ./
  12. COPY --from=0 /go/src/gin-vue-admin/resource ./resource
  13. EXPOSE 8888
  14. ENTRYPOINT ./server