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
405 B

4 years ago
4 years ago
  1. FROM golang:alpine
  2. WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server
  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/github.com/flipped-aurora/gin-vue-admin/server
  8. COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server ./
  9. EXPOSE 8888
  10. ENTRYPOINT ./server -c config.docker.yaml