From f08be1f3c1c63857ea2a431d74428ee51345a2f8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 2 Dec 2019 00:51:56 +0100 Subject: [PATCH] The generated command should all be on one line --- platypush/platydock/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platypush/platydock/__init__.py b/platypush/platydock/__init__.py index accc450476..a4544e8ef2 100755 --- a/platypush/platydock/__init__.py +++ b/platypush/platydock/__init__.py @@ -97,9 +97,11 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version): content += textwrap.dedent( ''' - RUN git clone https://github.com/BlackLight/platypush.git /app - && cd /app - && 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 ''')