Brohammad / Brohammad/VoxForge

Add a .dockerignore to shrink production build context

Open Beginner friendly
#34 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
4
Forks
1
Avg merge
5d 13m
Merged PRs (30d)
10

Description

## Task

There is no `.dockerignore`. `docker build -f Dockerfile.prod` sends tests, htmlcov, `.git`, and local artifacts as context.

## Scope

Exclude at least: `.git`, `tests/`, `htmlcov/`, `.github/`, `*.pyc`, `.venv`, `.env`, `.env.production`.
Keep whatever `Dockerfile.prod` actually COPYs (`src/`, `pyproject.toml`, `README.md`, alembic, dashboard, public, deploy templates as needed).

## Acceptance criteria

- [ ] `.dockerignore` at repo root
- [ ] `docker build -f Dockerfile.prod` still works (CI `docker-build`)
- [ ] Dashboard, demo, and alembic still present in the image
- [ ] PR notes before/after context size if easy to measure

Contributor guide

Open the contributing guide

Research direction

Start with Dockerfile.prod and the repository paths it COPYs, then review the CI docker-build check. Add a root .dockerignore covering the listed tests, artifacts, credentials, and metadata while retaining the paths needed for the production image; done means the build succeeds and the dashboard, demo, and alembic remain present.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
build-system, devops
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.