Reorder Python 2 Dockerfile to install dependencies together.
authorBen Sturmfels <ben@sturm.com.au>
Mon, 16 Sep 2019 07:27:05 +0000 (17:27 +1000)
committerBen Sturmfels <ben@sturm.com.au>
Mon, 16 Sep 2019 07:27:05 +0000 (17:27 +1000)
Dockerfile-python2

index 8ab28c0da8703d4937ab6af4e62e02ac3bc2ddef..849ca8ae359636a015c34815466e9b8fe7434027 100644 (file)
@@ -27,6 +27,7 @@ python-jsonschema \
 python-kombu \
 python-lxml \
 python-migrate  \
+python-mock \
 python-py \
 python-pytest \
 python-pytest-xdist \
@@ -97,13 +98,5 @@ RUN ./bin/gmg dbupdate
 RUN ./bin/gmg adduser --username admin --password a --email admin@example.com
 RUN ./bin/gmg makeadmin admin
 
-RUN ./bin/pip freeze
-
-USER root
-RUN apt-get install -y \
-curl \
-python-mock
-USER www-data
-
 # You can change this to /bin/bash if you'd prefer a shell.
 CMD ["./lazyserver.sh",  "--server-name=broadcast"]