diff --git a/Dockerfile b/Dockerfile index a36e6b4..bcd36b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,11 +20,6 @@ WORKDIR /app # Build with necessary params to enable statically linking openssl, glibc and sqlite3 RUN nimble build --passL:-L/usr/lib \ -d:ssl \ - --os:any \ - -d:posix \ - --deepcopy:on \ - -d:useMalloc \ - -d:noSignalHandler \ --cc:clang \ -p:. \ --dynlibOverride:ssl \ @@ -36,15 +31,10 @@ RUN nimble build --passL:-L/usr/lib \ --passL:-static \ --passL:"-flto=full" \ --passL:"-fuse-ld=lld" \ - --gc:arc \ - --panics:on \ - -d:danger \ + -d:release \ --opt:speed \ --accept -RUN strip -s /app/nim_censor_bot && \ - strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot - FROM scratch COPY --from=builder /app/nim_censor_bot /