File tree Expand file tree Collapse file tree 3 files changed +382
-362
lines changed Expand file tree Collapse file tree 3 files changed +382
-362
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ RUN pip install pip --upgrade
1616
1717RUN mkdir -p /project/src/ &&\
1818 mkdir -p /project/docs/ &&\
19- mkdir -p /project-static-copy
19+ mkdir -p /project-minimal-copy/sphinx_rtd_theme &&\
20+ touch /project-minimal-copy/sphinx_rtd_theme/__init__.py
2021
2122WORKDIR /project
2223
@@ -36,9 +37,9 @@ RUN npm install --package-lock-only &&\
3637
3738# This is strictly speaking not necessary, just makes
3839# running the container faster...
39- # Install dependencies, then uninstall project itself
40- COPY . /project-static -copy
41- RUN cd /project-static -copy &&\
40+ # Install dependencies, then uninstall project itsel
41+ COPY setup.py README.rst /project-minimal -copy/
42+ RUN cd /project-minimal -copy &&\
4243 pip install ".[dev]" &&\
4344 /usr/bin/yes | pip uninstall sphinx_rtd_theme
4445
Original file line number Diff line number Diff line change @@ -7,4 +7,11 @@ cp -r /project/node_modules /project-working-copy/
77cd /project-working-copy
88pip install --upgrade -e " .[dev]"
99
10+ # This helps a potential permission issue, but might be removed
11+ # pending some more investigation of docker host file system
12+ # permissions in the bind mount
13+ npm cache clean --force
14+ npm install
15+
16+ echo " Going to invoke: npm run $@ "
1017npm run $@
You can’t perform that action at this time.
0 commit comments