Skip to content

Commit

Permalink
added .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
fqjony committed Oct 15, 2024
1 parent ef1797a commit 5df3a30
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Ignore credentials and sensitive data
azure_creds.json
aws_creds.json
gcp_creds.json
bitwarden_creds.json

# Ignore Git and version control related files
.git
.gitignore
.gitattributes

# Ignore CI/CD and GitHub-related files
ci/*
.github/*

# Ignore documentation files
docs/*
README.md
SECURITY.md

# Ignore local development scripts and helper files
Makefile
Makefile.help
Makefile.variables

# Ignore build artifacts and temporary files
*.log
*.tmp
*.swp
*.bak
*.old

# Ignore unnecessary configuration or text files
etc/home/logo.txt

# Ignore readme files in the secrets and auth directories
lib/auth/readme.md
lib/secrets/readme.md

# Ignore unnecessary configuration documentation
src/configs/readme.md
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ MULTIPLATFORM ?= false
build:
@echo "Building Docker image..."
@if [ "$(MULTIPLATFORM)" = "true" ]; then \
echo "Building Docker image for multiple platforms..."; \
echo "Multiple platforms: [linux/amd64, linux/arm64]..."; \
docker buildx build --platform linux/amd64,linux/arm64 -t $(DOCKER_IMAGE) .; \
else \
echo "Building Docker image for the local platform..."; \
echo "Only local platform..."; \
docker build -t $(DOCKER_IMAGE) .; \
fi
@echo "Docker image build completed."
Expand Down

0 comments on commit 5df3a30

Please sign in to comment.