Browse Source

Update Dockerfile

main
SliverHorn 3 years ago
committed by GitHub
parent
commit
f96b415d4d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      server/Dockerfile

4
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"

Loading…
Cancel
Save