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
2 changed files with 21 additions and 5 deletions
Showing only changes of commit de4ec24d83 - Show all commits

@@ -1,7 +1,10 @@
#!/bin/sh #!/bin/sh
cargo build --target x86_64-unknown-linux-musl --release cargo build --target x86_64-unknown-linux-musl --release
podman build -t pastabble:latest . podman build -t pastabble:latest .
podman save --format oci-archive -o pastabble.tar pastabble
# load with podman load -i pastabble.tar # publish
# run with podman run -p 8080:8080 --name pastabble-c -v pastabble-v:/data -it pastabble # 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