build: use docker for building instead of the host #1

Merged
Maurice merged 2 commits from fix-dockerfile into main 2023-08-05 10:38:28 +00:00
Showing only changes of commit de4ec24d83 - Show all commits

@ -1,7 +1,10 @@
#!/bin/sh
cargo build --target x86_64-unknown-linux-musl --release
podman build -t pastabble:latest .
podman save --format oci-archive -o pastabble.tar pastabble
# load with podman load -i pastabble.tar
# run with podman run -p 8080:8080 --name pastabble-c -v pastabble-v:/data -it pastabble
# publish
# podman build --arch=arm64 . -t git.plabble.org/{user}/pastabble
# podman push git.plabble.org/{user}/pastabble
# run
# podman run -p 8080:8080 --name pastabble-c -v pastabble-v:/data -it pastabble