Replies: 1 comment
-
I don't know what the error is caused by, but here's some tips:
Here's a fixed Dockerfile: FROM node:18.16.1-bullseye-slim
USER node
WORKDIR /src
COPY --chown=node:node ./package*.json ./
RUN npm install && npm cache clean --force
WORKDIR /src/app
COPY --chown=node:node . .
CMD [ "npm", "run", "dev", "--host", "0.0.0.0", "--port", "3000" ] I didn't test that, but see how it works. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi Captain
I am getting a weird error deploying a node app to Docker. here is my Dockerfile
and here is part of the error
Beta Was this translation helpful? Give feedback.
All reactions