Only python setup.py web_build is needed in Docker
This commit is contained in:
parent
a1f3ff3ae5
commit
5f54eaa108
1 changed files with 2 additions and 5 deletions
|
@ -103,7 +103,7 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version):
|
||||||
RUN git clone --recursive https://github.com/BlackLight/platypush.git /app \\
|
RUN git clone --recursive https://github.com/BlackLight/platypush.git /app \\
|
||||||
&& cd /app \\
|
&& cd /app \\
|
||||||
&& pip install -r requirements.txt \\
|
&& pip install -r requirements.txt \\
|
||||||
&& python setup.py build
|
&& python setup.py web_build
|
||||||
|
|
||||||
RUN apk del git \\
|
RUN apk del git \\
|
||||||
&& apk del build-base \\
|
&& apk del build-base \\
|
||||||
|
@ -111,10 +111,7 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version):
|
||||||
&& apk del libjpeg-turbo-dev \\
|
&& apk del libjpeg-turbo-dev \\
|
||||||
&& apk del zlib-dev
|
&& apk del zlib-dev
|
||||||
|
|
||||||
RUN cat <<EOF > /app/platypush-start.sh \\
|
RUN echo 'cd /app && python -m platypush' > /app/platypush-start.sh
|
||||||
cd /app && python -m platypush \\
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUN chmod 0755 /app/platypush-start.sh
|
RUN chmod 0755 /app/platypush-start.sh
|
||||||
|
|
||||||
''')
|
''')
|
||||||
|
|
Loading…
Reference in a new issue