mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 00:43:59 +00:00
28 lines
527 B
Bash
Executable file
Vendored
28 lines
527 B
Bash
Executable file
Vendored
#!/bin/bash
|
|
set -e
|
|
|
|
# already start rust build in the background
|
|
pushd ../../server/ || exit
|
|
cargo build &
|
|
popd || exit
|
|
|
|
if [ "$1" != "--no-yarn-build" ]; then
|
|
pushd ../../ui/ || exit
|
|
yarn
|
|
yarn build
|
|
popd || exit
|
|
fi
|
|
|
|
# wait for rust build to finish
|
|
pushd ../../server/ || exit
|
|
cargo build
|
|
popd || exit
|
|
|
|
sudo docker build ../../ --file Dockerfile -t lemmy-federation:latest
|
|
|
|
for Item in alpha beta gamma ; do
|
|
sudo mkdir -p volumes/pictrs_$Item
|
|
sudo chown -R 991:991 volumes/pictrs_$Item
|
|
done
|
|
|
|
sudo docker-compose up
|