Commit f2920426 authored by Phyks's avatar Phyks

Update Dockerfile, fix for #96

parent e5d5c837
Pipeline #33911 passed with stage
in 22 minutes and 47 seconds
......@@ -39,10 +39,9 @@ RUN mkdir -p /home/user/.local/share/flatisfy
COPY ./run.sh /home/user/run.sh
RUN chmod +x /home/user/run.sh
COPY ./fetch.sh /home/user/fetch.sh
RUN chmod +x /home/user/fetch.sh
COPY ./update_weboob.sh /home/user/update_weboob.sh
RUN chmod +x /home/user/update_weboob.sh
# Run server.
USER user
CMD /home/user/run.sh
EXPOSE 8080
CMD /home/user/run.sh
#!/bin/bash
set -e
echo "Setting fake values for git config..."
git config --global user.email flatisfy@example.com
git config --global user.name "Flatisfy Root"
echo "Update Weboob..."
/home/user/update_weboob.sh
echo "Building data for Flatisfy..."
cd /home/user/app
python -m flatisfy build-data -v --config /flatisfy/config.json
su user -c "python -m flatisfy build-data -v --config /flatisfy/config.json"
echo "Fetching new housing posts..."
/home/user/fetch.sh
cd /home/user/app
su user -c "python -m flatisfy import -v --config /flatisfy/config.json"
echo "Starting web UI..."
python -m flatisfy serve -v --config /flatisfy/config.json
exec su user -c "python -m flatisfy serve -v --config /flatisfy/config.json"
#!/bin/bash
set -e
echo "Setting fake values for git config..."
git config --global user.email flatisfy@example.com
git config --global user.name "Flatisfy Root"
echo "Updating Weboob..."
cd /home/user/weboob
git pull
pip install --upgrade .
echo "Fetching housing posts..."
cd /home/user/app
python -m flatisfy import -v --config /flatisfy/config.json
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment