Skip to content

codespace fails to build . builds locally #50251

Answered by jkeech
solarslurpi asked this question in Codespaces
Discussion options

You must be logged in to vote

@solarslurpi I think the issue is coming from your docker-compose config where it's referencing an env_file that doesn't exist in the repo. Can you try removing that line? I suspect that file exists locally which is why it builds fine on your machine, but since it's not checked into the repo, it fails to build on another machine.

https://github.com/solarslurpi/mastoplaytime/blob/bfeaa8dfad116325cfc6726ce0931917d6ee1d8d/.devcontainer/docker-compose.yml#L39

docker-compose is erroring with Couldn't find env file: /var/lib/docker/codespacemount/workspace/mastoplaytime/config/.env

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@solarslurpi
Comment options

@xec-abailey
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@solarslurpi
Comment options

Answer selected by solarslurpi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Question
3 participants