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 f396186
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,31 @@ 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 npm executable
RUN which npm

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

# Follow the symbolic link and use the file command on the target
RUN file $(readlink -f $(which npm))

# Print the version of npm
RUN 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 f396186

Please sign in to comment.