fix: make pipenv install system-wide

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

View file

@ -1,5 +1,8 @@
#!/usr/bin/make -f
## System-wide installation of python/node ?
SYSTEM_INSTALL=0
## Configure this part if you wish to
DEPLOY_REPO=
DEPLOY_OPTS=
@ -69,7 +72,11 @@ prepare-slides: ## install prerequisites for PDF slides only
npx browserslist@latest --update-db
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

View file

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