diff --git a/Dockerfile b/Dockerfile index a2b9da6..17a4255 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,11 @@ WORKDIR /build COPY . . # sqlite必须 -ENV CGO_ENABLED=0 +ENV CGO_ENABLED=1 ENV GO111MODULE=on 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