Skip to content
Snippets Groups Projects
Commit 551f585b authored by Gilles Filippini's avatar Gilles Filippini Committed by pini
Browse files

docker: include .gitignore into .dockerignore

This is to prevent the result of previous in place builds to interfere with
the docker image build.
parent a5b302a4
No related branches found
No related tags found
1 merge request!1421docker: include .gitignore into .dockerignore
Pipeline #32350 passed
# Do not edit this file. It is generated from this command:
# ./dockerignore.make
.cargo .cargo
.git* .git*
doc doc
dockerignore.make
gui gui
test test
# ------------------
# .gitignore content
# ------------------
*.sublime*
node_modules/
*.html
npm-debug.log
bin/jpgp*.jar
.idea/
gui/nw
# Vim swap files
*~
*.swp
*.swo
# Vagrant
.vagrant/
vagrant/*.log
vagrant/duniter
# Python compiled
*.pyc
# Releases
/work
*.deb
*.tar.gz
*.log
*.exe
# vscode
.vscode
# istanbul
.nyc_output
coverage/
# typecode
typedoc/
# files generated by tsc
/index.js*
/index.d.ts
/server.js*
/server.d.ts
*/**/*.js*
app/**/*.d.ts
neon/lib/*.d.ts
test/**/*.d.ts
# files generated by neon
neon/native/artifacts.json
# rust binaries
bin/duniter
neon/native/index.node
target
# files generated by rust tests
neon/native/tests/*.txt
neon/native/tests/wotb-*
test2.bin.gz
**/*.wot
#!/usr/bin/make -f
define newline
endef
define echomultiline
/usr/bin/echo -e '$(subst $(newline),\n,$1)'
endef
define HEADER
# Do not edit this file. It is generated from this command:
# ./dockerignore.make
endef
define DOCKERIGNORE
.cargo
.git*
doc
dockerignore.make
gui
test
endef
define GITIGNORE_HEADER
# ------------------
# .gitignore content
# ------------------
endef
all: .dockerignore
.PHONY: .dockerignore
.dockerignore: .gitignore
$(call echomultiline,$(HEADER)) >$@.tmp
$(call echomultiline,$(DOCKERIGNORE)) >>$@.tmp
$(call echomultiline,$(GITIGNORE_HEADER)) >>$@.tmp
cat .gitignore >>$@.tmp
mv $@.tmp $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment