Skip to content

Is it possible to use env-cmd with docker? #353

@mnai01

Description

@mnai01

As of now my package.json build script looks like this.

"scripts": { "build": "env-cmd -e production react-scripts build", },

the problem is when I run a build through docker I get this error

code ELIFECYCLE
errno 1
env-cmd -e production react-script build
Exit status 1

failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 1

Is there anyway to use env-cmd with docker-compose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions