-
Notifications
You must be signed in to change notification settings - Fork 9
/
.dockerignore
76 lines (68 loc) · 1.36 KB
/
.dockerignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Ignore everything but files required to build
# the image:
# * *.go
# * go.mod
# * go.sum
# * Makefile
# * web/
#
# Note: The last rule takes precedence that is why we start by ignoring
# everything first and explicitly include the files that we need.
# ignore everything
*
**/*
# except go server and its dependencies
!**/*.go
!**/go.mod
!**/go.sum
!**/Makefile
!**/*/*.go
!**/*/*/*.go
!**/appconfig
!**/certs
!**/certs/**/*
!**/config
!**/config/**/*.json
!**/swagger
!**/swagger/**/*.json
!**/components
!**/components/**/*.json
!**/manifests
!**/manifests/**/*
!**/spec/v3.1.0
!**/spec/v3.1.0/**/*
!**/spec/v3.0.0
!**/spec/v3.0.0/**/*
!**/cmd
!**/cmd/**
!**/cmd/**/*
# Go project layout structure: https://github.com/golang-standards/project-layout
!**/pkg
!**/pkg/**
!**/pkg/**/*
!**/internal
!**/internal/**
!**/internal/**/*
# except vue.js website
!**/web
!**/web/**/*
# make sure:
# * node_modules
# * vue.js build dist dir
# * coverage output
# are all ignored
node_modules
**/node_modules
web/node_modules
**/web/node_modules
web/dist
**/web/dist
web/coverage
**/web/coverage
# Make sure the symbolic linked dir is exclude. They should not get
# sent into the build context but just to be sure we exclude them
# in case future versions of docker decide to send symbolic linked
# directories into the build context
**/pkg/server/web
**/pkg/server/web/**
**/pkg/server/web/**/*