Dockerfile 405 B

1234567891011121314151617
  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@[email protected]"
  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