Skip to content

Commit

Permalink
Fix NPM-installed files with large UID/GID.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gouttegd committed Dec 16, 2024
1 parent aa7594e commit d734424
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ RUN wget -nv http://archive.apache.org/dist/jena/binaries/apache-jena-$JENA_VERS
RUN swipl -g "pack_install(sparqlprog, [interactive(false),global(true)])" -g halt

# Install obographviz
RUN npm install -g obographviz
RUN npm install -g obographviz && \
chown -R root:root /usr/local/lib/node_modules

# Install OBO-Dashboard.
COPY scripts/obodash /tools
Expand Down

0 comments on commit d734424

Please sign in to comment.