localspot/.dockerignore
Kevin Sivic 8d9194b398
Some checks failed
CI - Test, Build, and Push / test (push) Failing after 1s
CI - Test, Build, and Push / build-and-push (push) Has been skipped
Add Forgejo CI workflow and Docker build
- Add Dockerfile for Phoenix release builds
- Add .dockerignore to optimize build context
- Add Forgejo workflow that runs tests then builds/pushes Docker image
- Update test config to support DATABASE_URL for CI
- Add release.ex and rel/ overlay scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 08:15:20 -05:00

53 lines
1.2 KiB
Text

# This file excludes paths from the Docker build context.
#
# By default, Docker's build context includes all files (and folders) in the
# current directory. Even if a file isn't copied into the container it is still sent to
# the Docker daemon.
#
# There are multiple reasons to exclude files from the build context:
#
# 1. Prevent nested folders from being copied into the container (ex: exclude
# /assets/node_modules when copying /assets)
# 2. Reduce the size of the build context and improve build time
# 3. Avoid sending sensitive files
#
# More information on using .dockerignore is available here:
# https://docs.docker.com/engine/reference/builder/#dockerignore-file
.dockerignore
# Ignore git, but keep git HEAD and refs to access current commit hash
.git/objects
.git/tmp
# Common development/test artifacts
/cover/
/doc/
/test/
/tmp/
.elixir_ls
# Mix artifacts
/_build/
/deps/
*.ez
# Generated on crash by the VM
erl_crash.dump
# Static artifacts - These should be fetched and built inside the Docker image
/assets/node_modules/
/priv/static/assets/
# Files matching config/*.secret.exs pattern are treated as secrets
/config/*.secret.exs
# Environment files
.env*
# Editor/IDE files
.idea/
.vscode/
*.swp
*.swo
*~