mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-10 00:18:49 -06:00
18 lines
257 B
Bash
Executable File
Vendored
18 lines
257 B
Bash
Executable File
Vendored
#!/bin/bash
|
|
set -e
|
|
|
|
if [ "$1" = "-yarn" ]; then
|
|
pushd ../../ui/ || exit
|
|
yarn
|
|
yarn build
|
|
popd || exit
|
|
fi
|
|
|
|
pushd ../../server/ || exit
|
|
cargo build
|
|
popd || exit
|
|
|
|
sudo docker build ../../ -f Dockerfile -t lemmy-federation:latest
|
|
|
|
sudo docker-compose up
|