An image to run crieur-chatbot have been added. The crieur-chatbot matrix-sdk dependency have been edited in order to use rustls instead of native tsl library.
1.1 KiB
1.1 KiB
title |
---|
Project tooling |
Container image
Chatbot release
The chatbot containerfile intend to be the smaller possible in order to ease and reduce the storage needed in registries.
In order to provide a minimal image, the rust-alpine container image is used.
This image uses the x86_64-unknown-linux-musl
target that provides static
linking with musl
.
However, the olm-sys
couldn't be linked statically1.
The workaround have been to introduce the
RUSTFLAGS=-Ctarget-feature=-crt-static
environment variable that disables
static linking.
The following lines have been added to copy the needed libraries.
COPY --from=build /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.6
COPY --from=build /usr/lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1
COPY --from=build /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
Development
An image aimed at providing a development environment for developers may be added later.
-
with
oml-sys
v1.1.1, in march 2021 ↩︎