error running image in docker (dockerfile)

default discord avatar
SHAGUI
4 weeks 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 ./

    Open the post
    Continue the discussion in Discord
    Like what we're doing?
    Star us on GitHub!

    Star

    Connect with the Payload Community on Discord

    Discord

    online

    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.