yarn error
Hello, I am quite new to Railway, actually I am trying to deploy my first projet. I get this error. Can yo uhelp me pleae and suggest what should I do to make it wokr. Thank you.
=========================
Using Detected Dockerfile
=========================
context: 47a5c43d3867727d5f9ea7a35e657255
#1 [internal] load .dockerignore
#1 transferring context: 98B done
#1 DONE 0.1s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 697B done
#2 DONE 0.1s
#3 [internal] load metadata for docker.io/library/node:18-alpine
#3 DONE 0.5s
#4 [ 1/11] FROM docker.io/library/node:18-alpine@sha256:1ccc70acda680aa4ba47f53e7c40b2d4d6892de74817128e0662d32647dd7f4d
#4 CACHED
#5 [internal] load build context
#5 transferring context: 7.36MB 0.1s done
#5 DONE 0.1s
#6 [ 3/11] WORKDIR /usr/src/packages
#6 CACHED
#7 [ 4/11] COPY package.json ./
#7 CACHED
#8 [ 5/11] COPY yarn.lock ./
#8 ERROR: failed to calculate checksum of ref moby::fwpmh1f9b66cq4y0vhxsnw6zz: "/yarn.lock": not found
#9 [ 2/11] RUN apk add --update libc6-compat
#9 0.373 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#9 CANCELED
-----
[ 5/11] COPY yarn.lock ./:----- Dockerfile:14 ------------------- 12 | # Copy root package.json and lockfile 13 | COPY package.json ./ 14 | >>> COPY yarn.lock ./ 15 | 16 | # Copy components package.json ------------------- ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::fwpmh1f9b66cq4y0vhxsnw6zz: "/yarn.lock": not found
9 Replies
Project ID:
e35729f0-1ee8-426c-89c3-2a59652bd618
e35729f0-1ee8-426c-89c3-2a59652bd618
you are building with your own dockerfile, can you share your repo so I could assist better?
@George Thai
GitHub
GitHub - djordjethai/Flowise
Contribute to djordjethai/Flowise development by creating an account on GitHub.
I am using the flowise as is, it works on local
remove this line
https://github.com/djordjethai/Flowise/blob/main/.gitignore#LL8C1-L8C13
then make sure your project does have a yarn.lock file
ok. how to get yarn.lock file if I dont have one now?
Run just:
yarn
from the terminalok thanks