1234567891011121314151617 |
- FROM golang:alpine
- WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server
- COPY . .
- RUN go generate && go env && go build -o server .
- FROM alpine:latest
- LABEL MAINTAINER="SliverHorn@[email protected]"
- WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server
- COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server ./
- EXPOSE 8888
- ENTRYPOINT ./server -c config.docker.yaml
|