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.

19 lines
348 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 ./
  11. EXPOSE 8888
  12. ENTRYPOINT ./server -c config.docker.yaml