Skip to content

Commit d734424

Browse files
committed
Fix NPM-installed files with large UID/GID.
For some unknown reasons (*cough* Javascript *cough*), when NPM's `underscore` module is installed (as a dependency to Obographviz), its files are given some impossibly large UID and GID. This may prevent the final image from being used on systems where Docker runs in rootless mode. So after Obographviz is installed, we ensure that all files and directories under /usr/local/lib/node_modules belong to root as they should.
1 parent aa7594e commit d734424

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ RUN wget -nv http://archive.apache.org/dist/jena/binaries/apache-jena-$JENA_VERS
8888
RUN swipl -g "pack_install(sparqlprog, [interactive(false),global(true)])" -g halt
8989

9090
# Install obographviz
91-
RUN npm install -g obographviz
91+
RUN npm install -g obographviz && \
92+
chown -R root:root /usr/local/lib/node_modules
9293

9394
# Install OBO-Dashboard.
9495
COPY scripts/obodash /tools

0 commit comments

Comments
 (0)