UNCLASSIFIED - NO CUI

Skip to content

`node` not exposed from `18.20.1-slim` as base image

Summary

node not exposed from 18.20.1-slim when used as base image to build node app. I am part of team developing an app using Game Warden. We just updated to new tags today since the previous is now EOL.

Steps to reproduce

Build node project using 18.20.1-slim as base image, here is the Dockerfile for one of our app components in the local development environment.

FROM registry1.dso.mil/ironbank/opensource/nodejs/nodejs18:18.20.1-slim AS dev

WORKDIR /app
COPY --chown=node:node package*.json .
RUN npm install

ENV PORT 8060
EXPOSE 8060

CMD ["npx", "nodemon", "./src/app.js"]

What is the current bug behavior?

Docker builds fail with the following error message:

> [sockets dev 4/4] RUN npm install:
0.350 env: can't execute 'node': No such file or directory
------
failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 127

What is the expected correct behavior?

The docker build command should run successfully and generate an image

Relevant logs and/or screenshots

See above

Possible fixes

See above

Tasks

  • Bug has been identified and corrected within the container

Please read the Iron Bank Documentation for more info

Edited by Jeff Weatherford
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information