Update nimble in the builder
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
e64874d8e6
commit
13e1931345
1 changed files with 18 additions and 16 deletions
34
Dockerfile
34
Dockerfile
|
@ -13,23 +13,25 @@ RUN apk update && apk add git \
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN nimble install nimble --accept
|
||||||
|
|
||||||
# Build with necessary params to enable statically linking openssl, glibc and sqlite3
|
# Build with necessary params to enable statically linking openssl, glibc and sqlite3
|
||||||
RUN nimble build --passL:-L/usr/lib \
|
RUN /root/.nimble/bin/nimble build --passL:-L/usr/lib \
|
||||||
-d:ssl \
|
-d:ssl \
|
||||||
-p:. \
|
-p:. \
|
||||||
--dynlibOverride:ssl \
|
--dynlibOverride:ssl \
|
||||||
--dynlibOverride:crypto \
|
--dynlibOverride:crypto \
|
||||||
--dynlibOverride:sqlite3 \
|
--dynlibOverride:sqlite3 \
|
||||||
--passl:-lssl \
|
--passl:-lssl \
|
||||||
--passl:-lsqlite3 \
|
--passl:-lsqlite3 \
|
||||||
--passl:-lcrypto \
|
--passl:-lcrypto \
|
||||||
--passL:-static \
|
--passL:-static \
|
||||||
--passL:"-flto" \
|
--passL:"-flto" \
|
||||||
-d:release \
|
-d:release \
|
||||||
--opt:speed \
|
--opt:speed \
|
||||||
--mm:orc \
|
--mm:orc \
|
||||||
--deepcopy=on \
|
--deepcopy=on \
|
||||||
--accept
|
--accept
|
||||||
|
|
||||||
RUN strip -s /app/nim_censor_bot && \
|
RUN strip -s /app/nim_censor_bot && \
|
||||||
strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot
|
strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot
|
||||||
|
|
Loading…
Reference in a new issue