[GH-ISSUE #170] Can not build image from Dockerfile. Can not connect, Error Couldn't find a package.json file in "/static" #44

Closed
opened 2026-03-02 05:18:21 +03:00 by kerem · 4 comments
Owner

Originally created by @KanybekMomukeyev on GitHub (Oct 11, 2021).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/170

Hi, is there any way, to build and link to redis from docker-compose?
I tried everything, can not connect to redis.

Even like this:

docker run -d --rm
--name asynqmon
-p 8080:8080
hibiken/asynqmon --redis-addr=172.18.0.4:6379 Can not connect to redis.

but if i try like this: redis-cli -h 172.18.0.4 -p 6379 ping, everything is ok.
I am trying to build new docker image from Dockerfile, but have following issue:

Building asynqmon
Step 1/16 : FROM alpine:3.13 AS frontend
3.13: Pulling from library/alpine
4e9f2cdf4387: Pull complete
Digest: sha256:2582893dec6f12fd499d3a709477f2c0c0c1dfcd28024c93f1f0626b9e3540c8
Status: Downloaded newer image for alpine:3.13
 ---> 12adea71a33b
Step 2/16 : WORKDIR /static
 ---> Running in ba029a731c1d
Removing intermediate container ba029a731c1d
 ---> 23be42dab112
Step 3/16 : RUN apk add --no-cache npm &&     npm i -g -s --unsafe-perm yarn
 ---> Running in 4e94d9f6516b
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/8) Installing ca-certificates (20191127-r5)
(2/8) Installing nghttp2-libs (1.42.0-r1)
(3/8) Installing brotli-libs (1.0.9-r3)
(4/8) Installing c-ares (1.17.2-r0)
(5/8) Installing libgcc (10.2.1_pre1-r3)
(6/8) Installing libstdc++ (10.2.1_pre1-r3)
(7/8) Installing nodejs (14.17.6-r0)
(8/8) Installing npm (14.17.6-r0)
Executing busybox-1.32.1-r6.trigger
Executing ca-certificates-20191127-r5.trigger
OK: 71 MiB in 22 packages
/usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js
/usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.22.15
added 1 package in 2.147s
Removing intermediate container 4e94d9f6516b
 ---> cef867ea8aea
Step 4/16 : COPY ui .
 ---> b4258e2afff3
Step 5/16 : RUN yarn install && yarn build
 ---> Running in babaf53cdef4
yarn install v1.22.15
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 0.12s.
yarn run v1.22.15
error Couldn't find a package.json file in "/static"
Originally created by @KanybekMomukeyev on GitHub (Oct 11, 2021). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/170 Hi, is there any way, to build and link to redis from docker-compose? I tried everything, can not connect to redis. Even like this: docker run -d --rm \ --name asynqmon \ -p 8080:8080 \ hibiken/asynqmon --redis-addr=172.18.0.4:6379 Can not connect to redis. but if i try like this: redis-cli -h 172.18.0.4 -p 6379 ping, everything is ok. I am trying to build new docker image from Dockerfile, but have following issue: ``` Building asynqmon Step 1/16 : FROM alpine:3.13 AS frontend 3.13: Pulling from library/alpine 4e9f2cdf4387: Pull complete Digest: sha256:2582893dec6f12fd499d3a709477f2c0c0c1dfcd28024c93f1f0626b9e3540c8 Status: Downloaded newer image for alpine:3.13 ---> 12adea71a33b Step 2/16 : WORKDIR /static ---> Running in ba029a731c1d Removing intermediate container ba029a731c1d ---> 23be42dab112 Step 3/16 : RUN apk add --no-cache npm && npm i -g -s --unsafe-perm yarn ---> Running in 4e94d9f6516b fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz (1/8) Installing ca-certificates (20191127-r5) (2/8) Installing nghttp2-libs (1.42.0-r1) (3/8) Installing brotli-libs (1.0.9-r3) (4/8) Installing c-ares (1.17.2-r0) (5/8) Installing libgcc (10.2.1_pre1-r3) (6/8) Installing libstdc++ (10.2.1_pre1-r3) (7/8) Installing nodejs (14.17.6-r0) (8/8) Installing npm (14.17.6-r0) Executing busybox-1.32.1-r6.trigger Executing ca-certificates-20191127-r5.trigger OK: 71 MiB in 22 packages /usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js /usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js + yarn@1.22.15 added 1 package in 2.147s Removing intermediate container 4e94d9f6516b ---> cef867ea8aea Step 4/16 : COPY ui . ---> b4258e2afff3 Step 5/16 : RUN yarn install && yarn build ---> Running in babaf53cdef4 yarn install v1.22.15 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved lockfile. Done in 0.12s. yarn run v1.22.15 error Couldn't find a package.json file in "/static" ```
kerem closed this issue 2026-03-02 05:18:21 +03:00
Author
Owner

@hibiken commented on GitHub (Oct 13, 2021):

@KanybekMomukeyev thank you for opening an issue. Let me investigate this.

<!-- gh-comment-id:941782577 --> @hibiken commented on GitHub (Oct 13, 2021): @KanybekMomukeyev thank you for opening an issue. Let me investigate this.
Author
Owner

@hibiken commented on GitHub (Oct 22, 2021):

@KanybekMomukeyev are you still seeing this error?
If so, would you mind describing the steps to reproduce?

<!-- gh-comment-id:949656904 --> @hibiken commented on GitHub (Oct 22, 2021): @KanybekMomukeyev are you still seeing this error? If so, would you mind describing the steps to reproduce?
Author
Owner

@KanybekMomukeyev commented on GitHub (Oct 26, 2021):

@hibiken thanks, i will try now

<!-- gh-comment-id:951527175 --> @KanybekMomukeyev commented on GitHub (Oct 26, 2021): @hibiken thanks, i will try now
Author
Owner

@KanybekMomukeyev commented on GitHub (Oct 26, 2021):

@hibiken thanks

 docker run -d --rm \
     --name asynqmon \
     --network imageuploader_mynetwork \
     -p 8080:8080 \
     hibiken/asynqmon --redis-addr=redis:6379

Worked

<!-- gh-comment-id:951529576 --> @KanybekMomukeyev commented on GitHub (Oct 26, 2021): @hibiken thanks ``` docker run -d --rm \ --name asynqmon \ --network imageuploader_mynetwork \ -p 8080:8080 \ hibiken/asynqmon --redis-addr=redis:6379 ``` Worked
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynqmon#44
No description provided.