Replies: 1 comment
-
Experiencing the same issue. Sad to see no response yet. Workaround |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am duplicating my question from stackoverflow.
Description:
I'm facing an issue while building a Docker image for my frontend application based on the Payload CMS ecommerce template.
I wasn't able to build Docker Image for Payload cms even I use the intial Dockerfile script coming from
npx create-payload-app
. I also made necessary change on .env:DATABASE_URI=mongodb://mongo:27017/demo-application
You can run
npx create-payload-app
to try installing ecommerce template. Let me know if you were able to build it.Dockerfile:
I made modifications to the Dockerfile after repeatedly encountering a
connect ECONNREFUSED
error with the original one:docker-compose.yml:
I also made modifications to the docker-compose.yml for the same reason:
package.json:
The
package.json
file is the same as the one in the Payload CMS ecommerce template:Issue:
I receive the following error log when building and running the Docker container:
Result of building:
funny part is it gets built; although frontend starts but stalls...
Containers:
.env:
Additional Information:
The error occurs when trying to run the
copyfiles
command during the build process. It seems likecopyfiles
is not found, even though it is listed in thepackage.json
and should be installed during the Docker build process.I tried making copyfiles devDependency → dependency, but i had the same error.
I would appreciate any insights or solutions to resolve this issue. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions