diff --git a/Dockerfile b/Dockerfile index dd4e5ad..bb082ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ RUN apk add upx WORKDIR /build COPY . . - +# sqlite必须 +ENV CGO_ENABLED=1 ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct @@ -21,6 +22,6 @@ RUN mkdir -p db COPY --from=build /build/app /app COPY --from=build /build/template/* /app/template/ -RUN ls -al /app/ | grep 'app' +RUN ls -al ENTRYPOINT ["./app"] \ No newline at end of file