Skip to content

Commit

Permalink
fix(install): fix install.py doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
pipech committed Jan 29, 2020
1 parent 415412e commit 9c52568
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM debian:9.6-slim

# fixed for debconf: unable to initialize frontend: Dialog
# https://github.com/moby/moby/issues/27988
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections

# install package
RUN apt-get -y update \
&& apt-get -y install \
&& apt-get -y -q install \
# prerequisite
build-essential \
python-setuptools \
Expand Down Expand Up @@ -81,7 +85,7 @@ ENV easyinstallRepo='https://raw.githubusercontent.com/frappe/bench/master/playb

# for python 2 use = python
# for python 3 use = python3 or python3.6 for centos
ARG pythonVersion=python
ARG pythonVersion=python3
ARG appBranch=master

RUN sudo service mysql start \
Expand All @@ -91,7 +95,7 @@ RUN sudo service mysql start \
&& wget $easyinstallRepo \
# remove mariadb from bench playbook
&& sed -i '/mariadb/d' /tmp/.bench/playbooks/site.yml \
&& python install.py \
&& sudo python3 install.py \
--without-bench-setup \
# install bench
&& rm -rf bench \
Expand Down

0 comments on commit 9c52568

Please sign in to comment.