New to Podman having some issues running successfully built image #20871
Unanswered
MrAmericanMike
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having some issues figuring out what's wrong with what I'm doing.
I trying to create a container with a
/server
workdir, where I copy first a package.json file, then run npm install, then copy the rest of the contents. (Apparently doing so is better than just copy the whole contents)You can check this setup in this repo: https://github.com/MrAmericanMike/podman
There you will find 2 Dockerfiles, one that works
Dockerfile
and one that doesn'tDockerfile-NO
The one that works, I don't copy the
package.json
file first before the rest of the content but copy the wholeserver
directory, then run npm installThe one that doesn't work, seams to build ok.
However when I try to run it, I get this error.
What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions