Skip to content

Docker context #1

@djvis

Description

@djvis

The docker files are currently located under the docker directory. This is problematic because:

The docker build command will use whatever directory contains the Dockerfile
as the build context (including all of its subdirectories).

...

In most cases, it's best to put each Dockerfile in an empty directory, and
then add only the files needed for building that Dockerfile to that
directory.

(source: https://docs.docker.com/reference/builder/)

One solution is to have scripts that copy the necessary stuff into the appropriate docker directory. This could be done via a simple "cp" command if the docker files are present in the repo (as they are now) or via a "git clone" command if they are elsewhere.

Thoughts?

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