Website template docker build image #5530
Unanswered
BraianPita
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Hey @BraianPita,
The docs mentino it here: https://payloadcms.com/docs/getting-started/installation#disabledbconnect |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to setup a CI/CD pipeline using docker and I started with the website template that combines payload and nextjs into a single project.
I am trying to run the docker build command to then push to my registry, but it fails because it cannot connect to the database. Then, I realized this is an issue of the 'npm run build' command failing if there is no database connection when I run it, is there a way to avoid this? I cannot generate my image since I don't have access to the database when building it. This is my output:
Beta Was this translation helpful? Give feedback.
All reactions