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.

17 lines
306 B

5 years ago
5 years ago
  1. FROM golang:alpine
  2. WORKDIR /go/src/gin-vue-admin
  3. COPY . .
  4. RUN go generate && go env && go build -o server .
  5. FROM alpine:latest
  6. LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
  7. WORKDIR /go/src/gin-vue-admin
  8. COPY --from=0 /go/src/gin-vue-admin ./
  9. EXPOSE 8888
  10. ENTRYPOINT ./server -c config.docker.yaml