From 169915ccc5221a554a627509cded0bd2fcc6b623 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 11 Nov 2016 14:26:24 -0800 Subject: [PATCH] Dockerfile: add entire dir, use .dockerignore --- .dockerignore | 11 +++++++++++ Dockerfile | 4 +--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..3266615d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +build/ +dist/ +.cache/ +.eggs/ +.git/ +**/*.egg +**/*.egg-info +**/__pycache__ +**/*.pyc + + diff --git a/Dockerfile b/Dockerfile index 6eed021a..3fc8617f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,7 @@ RUN pip install git+https://github.com/t0m/pyamf.git@python3 RUN pip install webassets pyyaml brotlipy RUN mkdir /pywb -ADD setup.py /pywb -ADD README.rst /pywb -ADD ./pywb /pywb/pywb +ADD . /pywb RUN cd pywb; python setup.py install RUN mkdir /webarchive