diff --git a/Dockerfile b/Dockerfile index 6ec387f..820040a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM fedora:latest +FROM fedora:30 EXPOSE 5000 RUN dnf -y -q -b install python3-virtualenv npm ADD . /app -RUN cd app && virtualenv-3.4 . +RUN cd app && virtualenv . RUN cd app && npm install -RUN bash -c '. app/bin/activate; pip install flask flask-assets requests PyReact' +RUN bash -c '. app/bin/activate; pip install -r /app/requirements.txt' RUN mkdir -p /app/static/.webassets-cache/ RUN chown nobody /app/static/.webassets-cache/ diff --git a/README.md b/README.md index f402da7..47cf9bf 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,12 @@ Getting started ## OAuth2 client setup -Get oauth2 client_id and client_secret from sipgate: https://api.sipgate.com/developer +Get oauth2 client_id and client_secret from sipgate: https://console.sipgate.com/ + +For local testing add + + * Redirect URI: http://127.0.0.1:5000/callback + * Web Origins: http://127.0.0.1:5000 ## Run using docker