added .dockerignore

This commit is contained in:
its-a-feature
2026-05-16 20:08:02 -07:00
parent e2bd253749
commit 40bc35d500
13 changed files with 120 additions and 7 deletions
+20
View File
@@ -0,0 +1,20 @@
*
!Dockerfile
!package.json
!package-lock.json
!config-overrides.js
!public/
!public/**
!src/
!src/**
!.env
.DS_Store
**/.DS_Store
node_modules/
build/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.npm/
.cache/
+12
View File
@@ -0,0 +1,12 @@
*
!Dockerfile
!src/
!src/**
.DS_Store
src/.DS_Store
src/.env
src/mythic-cli
src/mythic-cli_*
src/.gocache/
src/tmp/
+3 -2
View File
@@ -1,4 +1,5 @@
BINARY_NAME=mythic-cli
GO_BUILD_FLAGS?=-trimpath -ldflags="-s -w"
LOCAL_PATH=$(shell pwd)
BUILDER_IMAGE=ghcr.io/its-a-feature/mythic_cli:v3.4.0.57
.PHONY: default
@@ -23,7 +24,7 @@ copy_binary_macos:
chmod +x ${BINARY_NAME}
build_local:
cd src && go build -o ../../mythic-cli .
cd src && go build ${GO_BUILD_FLAGS} -o ../../mythic-cli .
build_linux_docker:
docker build -t mythic-cli-builder -f Dockerfile .
@@ -40,4 +41,4 @@ build_macos_docker:
chmod +x ${BINARY_NAME}
build_linux: copy_binary_linux
build_macos: copy_binary_macos
build_macos: copy_binary_macos
+5 -4
View File
@@ -1,19 +1,20 @@
BINARY_NAME=mythic-cli
GO_BUILD_FLAGS?=-trimpath -ldflags="-s -w"
export
build:
go mod download
go mod tidy
go build -o ${BINARY_NAME} .
go build ${GO_BUILD_FLAGS} -o ${BINARY_NAME} .
build_linux:
go mod tidy
GOOS=linux go build -o ${BINARY_NAME}_linux .
GOOS=linux go build ${GO_BUILD_FLAGS} -o ${BINARY_NAME}_linux .
build_macos:
go mod tidy
GOOS=darwin go build -o ${BINARY_NAME}_macos .
GOOS=darwin go build ${GO_BUILD_FLAGS} -o ${BINARY_NAME}_macos .
build_all: build_linux build_macos
+11
View File
@@ -0,0 +1,11 @@
.DS_Store
**/.DS_Store
.hugo_build.lock
public/
resources/
**/.git/
**/.github/
**/node_modules/
**/.ipynb_checkpoints/
**/__pycache__/
**/*.py[cod]
+7
View File
@@ -0,0 +1,7 @@
*
!Dockerfile
!metadata/
!metadata/**
.DS_Store
**/.DS_Store
+10
View File
@@ -0,0 +1,10 @@
*
!Dockerfile
!jupyter/
!jupyter/**
.DS_Store
**/.DS_Store
**/.ipynb_checkpoints/
**/__pycache__/
**/*.py[cod]
+14
View File
@@ -0,0 +1,14 @@
*
!Dockerfile
!src/
!src/**
.DS_Store
src/.DS_Store
src/.env
src/mythic_server
src/files/*
!src/files/.keep
src/.gocache/
src/tmp/
src/**/.DS_Store
+2 -1
View File
@@ -1,4 +1,5 @@
BINARY_NAME?=mythic_server
GO_BUILD_FLAGS?=-trimpath -ldflags="-s -w"
JWT_SECRET?="2Zd2rGaAhTnuGVEsq9LeYVFXns5PN1"
POSTGRES_HOST?="127.0.0.1"
POSTGRES_PASSWORD?="0zoHFSTbiT7AzJvnbvQ5Lt65YkIsuT"
@@ -19,7 +20,7 @@ export
build:
go mod tidy
GOEXPERIMENT=jsonv2 CGO_ENABLED=0 go build -o ${BINARY_NAME} -tags="nomsgpack" .
GOEXPERIMENT=jsonv2 CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o ${BINARY_NAME} -tags="nomsgpack" .
copy_to_final:
cp ${BINARY_NAME} /
copy_from_final:
+10
View File
@@ -0,0 +1,10 @@
*
!Dockerfile
!config/
!config/**
!mythic/
!mythic/public/
!mythic/public/**
.DS_Store
**/.DS_Store
+10
View File
@@ -0,0 +1,10 @@
*
!Dockerfile
!config/
!config/**
!error403.html
!health_check.sh
.DS_Store
ssl/
*.log
+9
View File
@@ -0,0 +1,9 @@
*
!Dockerfile
!configuration.sh
!pg_hba.conf
!postgres.conf
.DS_Store
database/
*.log
+7
View File
@@ -0,0 +1,7 @@
*
!Dockerfile
!generate_config.sh
!rabbitmq.conf
.DS_Store
storage/