Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
dockerignore
Advanced tools
Readme
Command line tool for creating or updating a .dockerignore file based on .gitignore.
npm i -g dockerignore
Say .gitignore
has:
node_modules
test/actual
And you want .dockerignore
to have:
node_modules
test/actual
test/fixtures
In the command line run:
dockerignore "test/fixtures"
An .dockerignore
file will be created, or updated:
node_modules
test/actual
# dockerignore
test/fixtures
Heads up!
The # dockerignore
comment is used to ensure that .dockerignore
reflects the latest changes in your .gitignore
file, just by running dockerignore
in the command line.
_If you want to preserve everything in your .dockerignore
file, regardless of what is in .gitignore
, just add the # dockerignore
comment at the top of the .dockerignore
file.
-i
|--ignore
: comma-separated list of patterns to add to .dockerignore
-u
|--unignore
: comma-separated list of patterns to remove from .dockerignore
. This will not un-ignore patterns in .gitignore
.-D
|--dest
: optionally define a different destination filepath. Good for test driving to see what will be generated in advance.-g
|--gitignore
: alternate source filepath for .gitignore
.-d
|--dockerignore
: alternate source filepath for .dockerignore
.To use via API, first:
npm i dockerignore --save
Then:
var dockerignore = require('dockerignore');
dockerignore(dock, git, options);
Params
dock
{String|Array}: String from .dockerignore
or an array of patterns to use.git
{String|Array}: String from .gitignore
or an array of patterns to use.options
{Object}
ignore
Array of patterns to add to the existing patterns from .gitignore
unignore
Array of patterns to remove from .dockerignore
. This will not un-ignore patterns in .gitignore
Install dev dependencies.
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
James Talmage
Jon Schlinkert
Original npmignore utility Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on March 17, 2015.
FAQs
Command line tool for creating or updating a .dockerignore file based on .gitignore.
The npm package dockerignore receives a total of 17 weekly downloads. As such, dockerignore popularity was classified as not popular.
We found that dockerignore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.