Skip to content

Support for Docker Compose build context #34

@rtoohil

Description

@rtoohil

Some of my compose files uses build context, i.e.

app:
  build:
    context: ./backend

Which tells compose to look in ./backend for the appropriate files, including Dockerfile. It looks like Build.swift tries to support this, but it hasn't worked in my testing. In my app, there's a Dockerfile in ./backend, but compose up doesn't find it.

Specifying a Dockerfile like:

 app:
    build: 
      context: ./backend
      dockerfile: ./backend/Dockerfile

also fails with this error: Error: /Users/rtoohil/Development/stash is not a child of /Users/rtoohil/Development/stash/./backend

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions