Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

error running image in docker (dockerfile)

default discord avatar
SHAGUI2 years ago
1

the error is generated by running docker using dockerfile. The error is: "throw new error('error: missing secret key. a secret key is needed to secure payload.');" payload docker



The solution is add this command line in dockerfile:


COPY .env ./

    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.