Adapt to docker env#3
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a Docker-based development environment for the multimodal_toolkit project (which uses uv and targets Python 3.12), including Compose + VS Code devcontainer support.
Changes:
- Introduces a
Dockerfilethat installs system audio deps and usesuv syncinto a venv at/opt/venv. - Adds
docker-compose.ymland.devcontainer/devcontainer.jsonto support a persistent dev container workflow. - Adds
.dockerignoreand VS Code launch configurations for local debugging.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
Dockerfile |
Builds a Python 3.12 slim image, installs audio/build deps, installs uv, syncs dependencies and project into /opt/venv. |
docker-compose.yml |
Defines an app service for running the container with the repo bind-mounted at /app. |
.devcontainer/devcontainer.json |
Connects VS Code devcontainer to the Compose service and points VS Code at /opt/venv/bin/python. |
.dockerignore |
Excludes common local artifacts from the Docker build context. |
.vscode/launch.json |
Adds debug launch configurations for running the pipeline modules. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+16
to
+18
| # Install uv | ||
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||
|
|
Comment on lines
+49
to
+50
| # Default command (can be overridden, e.g. for running scripts) | ||
| CMD ["/bin/bash"] |
Comment on lines
+3
to
+4
| # Switch to Tsinghua mirror for faster APT downloads and to avoid 502 errors | ||
| RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources |
Comment on lines
+31
to
+34
| # Copy dependency files first for caching | ||
| COPY pyproject.toml uv.lock ./ | ||
| COPY README.md ./ | ||
|
|
Comment on lines
+6
to
+14
| # Install necessary system dependencies for audio processing and build tools | ||
| RUN apt-get update && apt-get install -y \ | ||
| build-essential \ | ||
| libsndfile1 \ | ||
| ffmpeg \ | ||
| curl \ | ||
| git \ | ||
| wget \ | ||
| && rm -rf /var/lib/apt/lists/* |
Comment on lines
+1
to
+6
| .git | ||
| .idea | ||
| __pycache__ | ||
| *.pyc | ||
| .venv | ||
| .env |
Comment on lines
+20
to
+22
| }, | ||
| "remoteUser": "root" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.