Use repository root as build context in docker-compose
This fixes the issue where `docker-compose` fails to build takahe:latest container. The cause of issue is the build context for docker compose is different from the one of `docker build`. Currently, `make image` uses the repository root as a build context while `make compose_up` will use `docker/` directory as a build context. That's why docker-compose couldn't find the required files during building.
This commit is contained in:
parent
807d546b12
commit
cb26d78d36
|
@ -6,7 +6,10 @@ version: "3.4"
|
||||||
|
|
||||||
x-takahe-common:
|
x-takahe-common:
|
||||||
&takahe-common
|
&takahe-common
|
||||||
build: .
|
build:
|
||||||
|
context: ..
|
||||||
|
dockerfile: ./docker/Dockerfile
|
||||||
|
|
||||||
image: takahe:latest
|
image: takahe:latest
|
||||||
environment:
|
environment:
|
||||||
DJANGO_SETTINGS_MODULE: takahe.settings.development
|
DJANGO_SETTINGS_MODULE: takahe.settings.development
|
||||||
|
|
Loading…
Reference in New Issue