SliverHorn
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
server/Dockerfile
|
@ -1,11 +1,9 @@ |
|
|
FROM golang:alpine |
|
|
FROM golang:alpine |
|
|
|
|
|
|
|
|
ENV GO111MODULE=on |
|
|
|
|
|
ENV GOPROXY=https://goproxy.io,direct |
|
|
|
|
|
WORKDIR /go/src/gin-vue-admin |
|
|
WORKDIR /go/src/gin-vue-admin |
|
|
COPY . . |
|
|
COPY . . |
|
|
|
|
|
|
|
|
RUN go env && go build -o server . |
|
|
|
|
|
|
|
|
RUN go generate && go env && go build -o server . |
|
|
|
|
|
|
|
|
FROM alpine:latest |
|
|
FROM alpine:latest |
|
|
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com" |
|
|
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com" |
|
|