parent
e8ecc231b5
commit
145e40a431
@ -6,11 +6,11 @@ WORKDIR /build
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
# sqlite必须
|
# sqlite必须
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=1
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
ENV GOPROXY=https://goproxy.cn,direct
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
|
||||||
RUN CGO_ENABLED=1 go build -ldflags="-s -w" -installsuffix cgo -o app && up -9 app
|
RUN go build -ldflags="-s -w" -installsuffix cgo -o app && up -9 app
|
||||||
|
|
||||||
RUN ls -lh && chmod +x ./app
|
RUN ls -lh && chmod +x ./app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user