From 5f54eaa108a7a258656782daeb5ae527e277fd1f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 2 Dec 2019 01:18:17 +0100 Subject: [PATCH] Only python setup.py web_build is needed in Docker --- platypush/platydock/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/platypush/platydock/__init__.py b/platypush/platydock/__init__.py index 92a6b137..06f1a11d 100755 --- a/platypush/platydock/__init__.py +++ b/platypush/platydock/__init__.py @@ -103,7 +103,7 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version): RUN git clone --recursive https://github.com/BlackLight/platypush.git /app \\ && cd /app \\ && pip install -r requirements.txt \\ - && python setup.py build + && python setup.py web_build RUN apk del git \\ && apk del build-base \\ @@ -111,10 +111,7 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version): && apk del libjpeg-turbo-dev \\ && apk del zlib-dev - RUN cat < /app/platypush-start.sh \\ - cd /app && python -m platypush \\ - EOF - + RUN echo 'cd /app && python -m platypush' > /app/platypush-start.sh RUN chmod 0755 /app/platypush-start.sh ''')