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.

21 lines
484 B

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