Loading...
Loading...
Build Docker images for Python services following team conventions. Use this skill when writing Dockerfiles, authoring CI image build pipelines, or adding a new service — covers mitodl image naming, git short-ref tags, relocatable uv venvs, and shared library handling.
npx skill4agent add mitodl/agent-kit docker-uv-image-buildsmitodl/<service-name>GIT_TAG=$(git rev-parse --short HEAD)
docker build -t mitodl/${SERVICE_NAME}:${GIT_TAG} .latestWORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv venv --relocatable /app/.venv && \
uv sync --frozen --no-devol-orchestrate-libpyproject.tomluv sync.dockerignore.venv/
__pycache__/
*.pyc
.git/paths:paths