diff --git a/docker-compose/device-ccd.yml b/docker-compose/device-ccd.yml
index 8cbb9f345c055680ad5b152834371dc455d58f2a..a430b88eb05234b6bd62cc2a3d8784a28ae1010e 100644
--- a/docker-compose/device-ccd.yml
+++ b/docker-compose/device-ccd.yml
@@ -18,8 +18,8 @@ services:
     # build explicitly, as docker-compose does not understand a local image
     # being shared among services.
     build:
-        context: ..
-        dockerfile: docker-compose/lofar-device-base/Dockerfile
+        context: .
+        dockerfile: lofar-device-base/Dockerfile
         args:
             SOURCE_IMAGE: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-itango:${TANGO_ITANGO_VERSION}
     container_name: ${CONTAINER_NAME_PREFIX}device-ccd