Debian Codegraph @

docker-entrypoint.sh

raw
1 #!/bin/sh
2
3 # Update latest Python dependencies in case they have changed
4 # Notice that we are using the 'eager' strategy
5 # This should only be relevant to development environments where
6 # the theme is being used. For purposes of "production" or
7 # building the sdist/wheel, installing dependencies should not
8 # affect the outcome.
9 cd /project-readonly
10 pip install --upgrade --upgrade-strategy eager -e ".[dev]"
11
12 # This helps a potential permission issue, but might be removed
13 # pending some more investigation of docker host file system
14 # permissions in the bind mount
15 # npm cache clean --force
16 # npm install
17
18 cd /project
19
20 # TODO: This is a bad approach, it copies from the image which
21 # may be outdated to the current git tree
22 cp -r /project-readonly/sphinx_rtd_theme .
23
24 echo "Going to invoke: npm run $@"
25 npm run $@