flatisfy/docker/run.sh
Phyks (Lucas Verney) f55b6a940b Update Dockerfile to use an entrypoint
Mimmick what Kresus is doing so that generated file are not owned by
root. Fix for #106.
2017-12-30 19:57:14 +01:00

14 lines
341 B
Bash

#!/bin/bash
set -e
echo "Building data for Flatisfy..."
cd /home/user/app
python -m flatisfy build-data -v --config /flatisfy/config.json
echo "Fetching new housing posts..."
cd /home/user/app
python -m flatisfy import -v --config /flatisfy/config.json
echo "Starting web UI..."
python -m flatisfy serve -v --config /flatisfy/config.json