Do git clone and explicit pip install -r requirements.txt in platydock to make sure that all the recommended dependencies are installed
This commit is contained in:
parent
fbe4f9494c
commit
3ac9ecbd8f
1 changed files with 3 additions and 2 deletions
|
@ -92,7 +92,8 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version):
|
||||||
|
|
||||||
content += textwrap.dedent(
|
content += textwrap.dedent(
|
||||||
'''
|
'''
|
||||||
RUN pip install git+https://github.com/BlackLight/platypush.git
|
RUN git clone https://github.com/BlackLight/platypush.git /app && cd /app
|
||||||
|
RUN pip install -r requirements.txt && python setup.py build install
|
||||||
RUN apk del git && apk del build-base
|
RUN apk del git && apk del build-base
|
||||||
|
|
||||||
''')
|
''')
|
||||||
|
@ -100,7 +101,7 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version):
|
||||||
for port in ports:
|
for port in ports:
|
||||||
content += 'EXPOSE {}\n'.format(port)
|
content += 'EXPOSE {}\n'.format(port)
|
||||||
|
|
||||||
content += '\nCMD ["python3", "-m", "platypush"]\n'
|
content += '\nCMD ["python", "-m", "platypush"]\n'
|
||||||
dockerfile = os.path.join(devdir, 'Dockerfile')
|
dockerfile = os.path.join(devdir, 'Dockerfile')
|
||||||
print('Generating Dockerfile {}'.format(dockerfile))
|
print('Generating Dockerfile {}'.format(dockerfile))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue