From 3a347496d3d89537b574ac86cb7f8d93e15c7987 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 2 Dec 2019 00:49:19 +0100 Subject: [PATCH] Fixed git clone && cd dance in generated Dockerfile --- platypush/platydock/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/platydock/__init__.py b/platypush/platydock/__init__.py index 875a1d81..accc4504 100755 --- a/platypush/platydock/__init__.py +++ b/platypush/platydock/__init__.py @@ -97,8 +97,9 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version): content += textwrap.dedent( ''' - RUN git clone https://github.com/BlackLight/platypush.git /app && cd /app/platypush - RUN pip install -r requirements.txt && python setup.py build install + RUN git clone https://github.com/BlackLight/platypush.git /app + && cd /app + && pip install -r requirements.txt && python setup.py build install RUN apk del git && apk del build-base ''')