All Questions
176
questions
-2
votes
0
answers
59
views
Error while Creating docker image, ERROR: failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
ERROR: failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
FROM node:slim
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn install
COPY ...
0
votes
0
answers
22
views
How to install npm package from private GitHub repo using yarn?
I have npm package in private GitHub repo. How could I install it using yarn v1 in Dockerfile?
Without Dockerfile on my machine I use
"package_name": "git+ssh://[email protected]/org_name/...
0
votes
0
answers
55
views
Yarn Install fail in Dockerfile when using proxy
I've got this build that fails everytime we try to install Yarn, thus I tried to use Yarn set proxy but still without success.
I tried this since am forced to use a proxy with my self-hosted agent:
...
0
votes
0
answers
59
views
How to debug docker build with yarn
I am having an issue with using node:18-alpine in my Dockerfile (even in the getting-started demo). When I run docker build -t 'getting-started' . I receive the following error:
=> [3/4] COPY . . ...
0
votes
0
answers
44
views
React Build Fails with "Reached Heap Limit" Error in Dockerized Environment*
I'm encountering a "FATAL ERROR: Reached heap limit Allocation failed" error during the build process of my ReactJS project within a Dockerized environment.
Environment:
ReactJS application
...
-1
votes
1
answer
126
views
Docker build arg leaked into build environment
I was using Docker to build some frontend code:
FROM docker-server/docker-images/ui/node:20.10.0-alpine AS webpack_build
ARG NODE_ENV
ARG SENTRY_AUTH_TOKEN
WORKDIR /app
COPY package* yarn.lock ...
0
votes
0
answers
1k
views
yarn install Dockerfile gives message: failed to solve: process "/bin/sh -c yarn" did not complete successfully: exit code: 1
When try to execute my frontend project (react-vite) that works in my local machine , with yarn in Docker , Its a really long confusing message
I try running yarn install with others args but nothing ...
-1
votes
1
answer
276
views
How can i install the yarn package in an nginx:1.25 container
I have containerized my laravel project. However, I want to be able to run yarn commands on the web container(nginx:1.25 container). I have searched the internet, but haven't had success finding an ...
0
votes
1
answer
2k
views
Storybook not work with string-width library after yarn add ... another packeges or yarn install new enviroment
When installing the storubook library and using autodocs, I noticed that my server started crashing with an error:
react-app-frontend-storybook-1 | /app/node_modules/cli-table3/src/utils.js:1
react-...
-1
votes
2
answers
14k
views
How to solve Docker container exec format error for running entrypoint
Perviously the question was related to Yarn command not found after successful docker build. But it was fixed but my problem is related to using shell /bin/sh Here's What I am trying to do use yarn ...
2
votes
1
answer
961
views
Yarn command not found after successful docker build
Hi I am using amazonlinux:2 as my docker image and i am trying to install nodev14 from nvm I did not find any alternatives to do that I am trying to install yarn. Here's my Dockerfile
FROM amazonlinux:...
-2
votes
1
answer
1k
views
Docker image build error: node-gyp: not found [closed]
I am trying to build a docker Image for a nodejs application.
Dockerfile: https://backstage.io/docs/deployment/docker#multi-stage-build
My Docker build comamnd fails as below:
$ docker image build -t ...
0
votes
0
answers
53
views
Is it safe to create a symlink in a dockerfile to /run/secrets/my_build_time_secret in the first stage of a multistage dockerfile
I have this docker-compose.yml:
secrets:
my_app_npmrc:
file: "/some/path/.npmrc"
services:
my-app-front:
hostname: my-app-front
build:
context: "/some/path"
...
1
vote
1
answer
4k
views
Install and run yarn inside the docker container
I have docker build which works fine. But i want to install version specific yarn inside the container(it is the task) and run it after building, cause i dont want rebuild the container for install ...
0
votes
1
answer
2k
views
How can I use specific yarn version?
I have a configuration in my local environment working successfully. For instance, I have the following versions:
yarn - 3.2.4
node - 14.8.0
npm - 6.14.0
These versions are working fine in my local ...