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
=> ERROR [4/4] RUN yarn install --production
------
> [4/4] RUN yarn install --production:
------
Dockerfile:6
--------------------
4 | WORKDIR /app
5 | COPY . .
6 | >>> RUN yarn install --production
7 | CMD ["node", "src/index.js"]
8 | EXPOSE 3000
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn install --production" did not complete successfully: exit code: 139
As a workaround I found that changing FROM node:18-alpine to FROM node:18 does work. I am having the same issue with other Dockerfiles I am attempting to use with FROM node:18-alpine.
The full output from docker build -t getting-started . is :
found the same issue on docker 101 tutorial documentation,
docker run -dp 80:80 docker/getting-started
need to fix it in this container also . https://www.docker.com/101-tutorial/
Running the build command in the getting-started tutorial part 2 produced the following error:
As a workaround I found that changing
FROM node:18-alpine
toFROM node:18
does work. I am having the same issue with other Dockerfiles I am attempting to use withFROM node:18-alpine
.The full output from
docker build -t getting-started .
is :docker version
output:docker info
output:The text was updated successfully, but these errors were encountered: