Skip to content

Commit

Permalink
Add diagnostic output around npm calls
Browse files Browse the repository at this point in the history
  • Loading branch information
felddy committed Sep 26, 2023
1 parent 0f5c543 commit 6408b91
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,34 @@ COPY \
package-lock.json \
tsconfig.json \
./
RUN \
npm install --loglevel verbose && \
npm install --loglevel verbose --global typescript

# Install the file command
RUN apk add --no-cache file

# Check the path to the node executable
RUN which node

# Use the file command to inspect the npm binary
RUN file $(which node)

# Use ldd to inspect the node binary
RUN ldd $(which node)

# Print the version of node
RUN node -v

# Print the version of npm (this hangs on s390x)
RUN NODE_DEBUG=* node $(which npm) -v

# List all npm configurations
RUN npm config ls -l

# Run npm install with verbose logging
RUN npm install --loglevel verbose

# Install typescript globally with verbose logging
RUN npm install --global typescript --loglevel verbose

COPY /src/*.ts src/
RUN tsc
RUN grep -l "#!" dist/*.js | xargs chmod a+x
Expand Down

0 comments on commit 6408b91

Please sign in to comment.