Resin build issue with relative paths in docker-compose

I’m running into an issue when doing resin build with a docker-compose file referencing a context on a parent folder. Using docker-compose build works.

resin-cli@7.9.3

ie:

version: '2'

services:
  foo:
    build: 
      context: ../foo
Project type for service 'foo' could not be determined. Please add a Dockerfile

I’ve tried symlinks but get a File is a directory: undefined error.

Any way to get this to work please?

Hi there,

Our builder expects a docker-compose file in the root level directory, so unfortunately specifying context with relative directories above this file will not work.

However, contexts under the root level should work with no issue.

Best regards, Heds

Thanks, a bit annoying but I solved it with symlinking my Dockerfile