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
384 B
17 lines
384 B
FROM golang:alpine
|
|
|
|
WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin
|
|
COPY . .
|
|
|
|
RUN go generate && go env && go build -o server .
|
|
|
|
FROM alpine:latest
|
|
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
|
|
|
|
WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin
|
|
|
|
COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin ./
|
|
|
|
EXPOSE 8888
|
|
|
|
ENTRYPOINT ./server -c config.docker.yaml
|