Add musl build target for bitwarden
This commit is contained in:
@@ -15,8 +15,19 @@ RUN npm install
|
|||||||
|
|
||||||
COPY src/Managing.Web3Proxy/ .
|
COPY src/Managing.Web3Proxy/ .
|
||||||
|
|
||||||
# Build targeting musl (Alpine) binary compatibility
|
# Build Bitwarden SDK CLI (bws) from source for Alpine (musl)
|
||||||
RUN npm run build -- --target x86_64-unknown-linux-musl
|
RUN apk add --no-cache curl cargo openssl-dev pkgconfig build-base \
|
||||||
|
&& curl -LO https://github.com/bitwarden/sdk/archive/refs/tags/bws-v0.3.1.tar.gz \
|
||||||
|
&& tar -xzf bws-v0.3.1.tar.gz \
|
||||||
|
&& cd sdk-bws-v0.3.1 \
|
||||||
|
&& export OPENSSL_NO_VENDOR=Y \
|
||||||
|
&& cargo build -r --bin bws \
|
||||||
|
&& mv target/release/bws /usr/local/bin/bws \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf sdk-bws-v0.3.1 bws-v0.3.1.tar.gz
|
||||||
|
|
||||||
|
# Build the app
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 4111
|
EXPOSE 4111
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user