fix: make pipenv install system-wide

This commit is contained in:
Glenn Y. Rolland 2021-12-06 14:59:18 +01:00
parent 5d60e2043d
commit 7cce63b660
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,8 @@
#!/usr/bin/make -f #!/usr/bin/make -f
## System-wide installation of python/node ?
SYSTEM_INSTALL=0
## Configure this part if you wish to ## Configure this part if you wish to
DEPLOY_REPO= DEPLOY_REPO=
DEPLOY_OPTS= DEPLOY_OPTS=
@ -69,7 +72,11 @@ prepare-slides: ## install prerequisites for PDF slides only
npx browserslist@latest --update-db npx browserslist@latest --update-db
prepare-docs: ## install prerequisites for static docs site only prepare-docs: ## install prerequisites for static docs site only
pipenv install if [ "$(SYSTEM_INSTALL)" -eq 1 ]; then \
pipenv install --system ; \
else \
pipenv install ; \
fi
.PHONY: prepare prepare-slides prepare-docs .PHONY: prepare prepare-slides prepare-docs

View file

@ -20,8 +20,7 @@ WORKDIR /app
ENV LANG=C ENV LANG=C
ENV LC_ALL=C ENV LC_ALL=C
RUN make prepare RUN make prepare SYSTEM_INSTALL=1
ENTRYPOINT ["/app/docker/entrypoint.sh"] ENTRYPOINT ["/app/docker/entrypoint.sh"]
CMD ["watch"] CMD ["watch"]