stencila / dockta

🐳 A Docker image builder for researchers

Home Page:https://stencila.github.io/dockta/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat(DockerBuilder): implement .dockerignore like behaviour

nokome opened this issue · comments

Currently we send all files in the folder to the Docker daemon as a build context, with a few exceptions:

https://github.com/stencila/dockter/blob/v0.2.6/src/DockerBuilder.ts#L61

It would also be sensible to ignore node_modules etc. See https://codefresh.io/docker-tutorial/not-ignore-dockerignore/

This is language-specific, but as you say lots of conventions-based folders like node_modules could be excluded.