From 0f9b1eefc5ae54f3c4c2fbce6b6427b711efdf91 Mon Sep 17 00:00:00 2001 From: Willi Junga Date: Sat, 26 Oct 2024 11:12:28 +0200 Subject: [PATCH] create build.sh for debian --- build-debian.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 build-debian.sh diff --git a/build-debian.sh b/build-debian.sh new file mode 100755 index 0000000..3ff50a0 --- /dev/null +++ b/build-debian.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +apt install -y clang lld musl-dev cargo +cp -R backend/* . +cargo build --release --target-dir ./build +mv ./build/release/simple-wkd simple-wkd-executable + + +apt install -y npm +cp -R website/* . +npm install -g pnpm && \ + pnpm install && \ + pnpm run build +#cp -R assets/* assets +mv dist assets/webpage + + + +#WORKDIR /wkd +#COPY entrypoint.sh entrypoint.sh +#COPY --from=webpage-builder assets assets +#COPY --from=bin-builder simple-wkd-executable wkd +#RUN apk add --no-cache libgcc && \ +# adduser --no-create-home --disabled-password wkd && \ +# chown -R wkd:wkd /wkd +# +#ENTRYPOINT [ "sh", "/wkd/entrypoint.sh" ]