mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 20:31:31 +00:00
20 lines
378 B
Bash
20 lines
378 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
sudo rm -rf volumes
|
||
|
|
||
|
pushd ../../server/
|
||
|
cargo build
|
||
|
popd
|
||
|
|
||
|
pushd ../../ui
|
||
|
yarn
|
||
|
popd
|
||
|
|
||
|
mkdir -p volumes/pictrs_{alpha,beta,gamma}
|
||
|
sudo chown -R 991:991 volumes/pictrs_{alpha,beta,gamma}
|
||
|
|
||
|
sudo docker build ../../ --file ../federation/Dockerfile --tag lemmy-federation:latest
|
||
|
|
||
|
sudo docker-compose --file ../federation/docker-compose.yml --project-directory . up
|