File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ # This file should not be included in the build context
2
+ FROM scratch
Original file line number Diff line number Diff line change @@ -6,25 +6,33 @@ import { promises as stream } from "stream";
6
6
import * as tar from "tar" ;
7
7
8
8
const SOURCE_DATE_EPOCH = process . env [ "SOURCE_DATE_EPOCH" ] ?? "315532800" ; // defaults to 1980-01-01, same as nix-shell
9
+
10
+ // The default .dockerignore for projects that don't have one. Keep in sync with pkg/cli/context.go in CLI repo.
9
11
const defaultDockerIgnore = `# Default .dockerignore file for Defang
10
- **/.DS_Store
12
+ **/__pycache__
11
13
**/.direnv
14
+ **/.DS_Store
12
15
**/.envrc
13
16
**/.git
14
17
**/.github
15
18
**/.idea
16
19
**/.next
17
20
**/.vscode
18
- **/__pycache__
21
+ **/compose.*.yaml
22
+ **/compose.*.yml
19
23
**/compose.yaml
20
24
**/compose.yml
21
- **/defang.exe
25
+ **/docker-compose.*.yaml
26
+ **/docker-compose.*.yml
22
27
**/docker-compose.yaml
23
28
**/docker-compose.yml
24
29
**/node_modules
25
30
**/Thumbs.db
31
+ Dockerfile
32
+ *.Dockerfile
26
33
# Ignore our own binary, but only in the root to avoid ignoring subfolders
27
34
defang
35
+ defang.exe
28
36
# Ignore our project-level state
29
37
.defang` ;
30
38
You can’t perform that action at this time.
0 commit comments