mirror of
https://git.verdigado.com/NB-Public/simple-wkd.git
synced 2024-12-05 03:12:50 +01:00
create build.sh for debian
This commit is contained in:
parent
a61f03f412
commit
0f9b1eefc5
1 changed files with 27 additions and 0 deletions
27
build-debian.sh
Executable file
27
build-debian.sh
Executable file
|
@ -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" ]
|
Loading…
Reference in a new issue