You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this the right form to ask the question/issue that I am having, If not sorry , please help me with the right form So I can ask there.
I am using alpine node image, I tried with 16.19.1-alpine3.16 , node:14.21-alpine , node:14.17.4-alpine version of it but I am not able to deploy the code. I am getting below issue.
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
Find out more about deployment here:
bit.ly/CRA-deploy
env: can't execute 'node
': No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This is in my docker file
FROM node:16.19.1-alpine3.16 as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY ./package.json /app/
RUN yarn --silent
COPY . /app
RUN yarn build
It is failing on the last command (RUN yarn build)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is this the right form to ask the question/issue that I am having, If not sorry , please help me with the right form So I can ask there.
I am using alpine node image, I tried with 16.19.1-alpine3.16 , node:14.21-alpine , node:14.17.4-alpine version of it but I am not able to deploy the code. I am getting below issue.
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
Find out more about deployment here:
bit.ly/CRA-deploy
env: can't execute 'node
': No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This is in my docker file
FROM node:16.19.1-alpine3.16 as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY ./package.json /app/
RUN yarn --silent
COPY . /app
RUN yarn build
It is failing on the last command (RUN yarn build)
Beta Was this translation helpful? Give feedback.
All reactions