diff lib/patchablegraph/Dockerfile @ 710:94610b5263e4

add browser_test server for playing with /graph resource Ignore-this: 6112c234b93e0fb99ffe918a022e5a49
author drewp@bigasterisk.com
date Mon, 03 Feb 2020 23:45:15 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/patchablegraph/Dockerfile	Mon Feb 03 23:45:15 2020 -0800
@@ -0,0 +1,18 @@
+FROM bang6:5000/base_x86
+
+WORKDIR /opt
+
+COPY browser_test_requirements.txt ./
+
+RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r browser_test_requirements.txt
+# not sure why this doesn't work from inside requirements.txt
+RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -U 'https://github.com/drewp/cyclone/archive/python3.zip?v2'
+
+COPY ./patchablegraph.py ./patchsource.py ./setup.py __init__.py patchablegraph/
+RUN pip3 install patchablegraph/
+
+COPY browser_test.py ./
+
+EXPOSE 8021
+
+CMD [ "python3", "browser_test.py" ]