Fresh install as per README - failed
gauravdhiman opened this issue · comments
I followed the instructions on README file to install the project and build docker images. At 3rd step when I run docker compose up --build -d, it fails with below error.
❯ docker compose up --build -d
[+] Running 0/0
⠋ Service backend Building 0.1s
[+] Building 0.0s (1/1) FINISHED docker:desktop-linux
=> [backend internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 370B 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) 0.0s
[+] Running 0/1sCasing: 'as' and 'FROM' keywords' casing do not match (line 8) 0.0s
⠙ Service backend Building 0.1s
failed to solve: target stage "development # or production" could not be found
Fixed it by running this command export ENVIRONMENT=development docker compose up --build -d
May be we should update README to highlight that ENVIRONMENT variable needs to be set before running the docker command.
Thanks for catching and reporting this bug @gauravdhiman
While we do pick ENVIRONMENT=development by default in docker-compose, the issue was that in .env.example it was mistakenly set to:
ENVIRONMENT=development # or production
So anyone who copied from .env.example could end up having invalid ENVIRONMENT value if left unchanged.
This is fixed in 1573551
Please feel free to reopen this issue if this doesn't fix it.
Thanks for addressing the issue.