Setting up etebase on docker

docker run -p 8000:8000 -it debian:latest /bin/bash

apt update && apt upgrade -y && apt install -y git python3-virtualenv
git clone https://github.com/etesync/server.git etebase && cd etebase

# Set up the environment and deps
virtualenv -p python3 .venv
source .venv/bin/activate
pip install -r requirements.txt

# Copy sample ini file
cp etebase-server.ini.example etebase-server.ini

# Change parameters in ini file
sed -i 's/^allowed_host1 =.*/allowed_host1 = etebase.home.arpa/' etebase-server.ini
sed -i 's/^media_root =.*/media_root = \/etebase-data/' etebase-server.ini
sed -i 's/^static_root =.*/static_root = \/etebase-static/' etebase-server.ini

# initialise our django app
./manage.py migrate

# Create static files:
./manage.py collectstatic

# run service
uvicorn etebase_server.asgi:application --host 0.0.0.0 --port 8000