fix: erpnext image build

improve travis.py
python packages not installed in editable mode
use venv module instead of virtualenv
This commit is contained in:
Revant Nandgaonkar
2020-06-28 05:55:15 +05:30
parent 18e8f05c9f
commit f5071122ed
5 changed files with 54 additions and 46 deletions

View File

@@ -32,11 +32,11 @@ RUN install_packages \
RUN mkdir -p apps logs commands /home/frappe/backups
# Setup python environment
RUN virtualenv env \
RUN python -m venv env \
&& . env/bin/activate \
&& cd apps \
&& git clone --depth 1 -o upstream https://github.com/frappe/frappe --branch ${GIT_BRANCH} \
&& pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/frappe
&& pip3 install --no-cache-dir /home/frappe/frappe-bench/apps/frappe
# Copy scripts and templates
COPY build/common/commands/* /home/frappe/frappe-bench/commands/