Skip to content

Commit

Permalink
build(docker): Refine the .dockerignore as a whitelist (#471)
Browse files Browse the repository at this point in the history
* many potential folders/files to ignore (e.g. _build) were not listed
* let's bluntly ignore what is not required by the `Dockerfile`s
  • Loading branch information
erikmd committed Mar 6, 2022
1 parent 5c12539 commit 41706ea
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .dockerignore
@@ -1,4 +1,19 @@
.git
_obuild
_opam
www
*
# whitelist: ignore everything except:
!src
!static
!translations
!scripts
!demo-repository

!learn-ocaml.opam
!learn-ocaml.opam.locked
!learn-ocaml-client.opam
!learn-ocaml-client.opam.locked

!Makefile
!dune-project
!dune

# ignore backup files
**/*~

0 comments on commit 41706ea

Please sign in to comment.