Skip to content
Snippets Groups Projects
Commit 995da6c3 authored by Gilles Filippini's avatar Gilles Filippini
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 f12d6871
Branches
Tags
No related merge requests found
Pipeline #31704 passed
# Do not edit this file. It is generated from this command:
# ./dockerignore.make
.cargo
.git*
doc
dockerignore.make
gui
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.
Please register or to comment