Skip to content

Adapt to docker env#3

Merged
FANNG1 merged 1 commit into
mainfrom
docker_env
Jun 30, 2026
Merged

Adapt to docker env#3
FANNG1 merged 1 commit into
mainfrom
docker_env

Conversation

@nyl3532016

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Dockerfile that installs system audio deps and uses uv sync into a venv at /opt/venv.
  • Adds docker-compose.yml and .devcontainer/devcontainer.json to support a persistent dev container workflow.
  • Adds .dockerignore and 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 thread Dockerfile
Comment on lines +16 to +18
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

Comment thread Dockerfile
Comment on lines +49 to +50
# Default command (can be overridden, e.g. for running scripts)
CMD ["/bin/bash"]
Comment thread Dockerfile
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 thread Dockerfile
Comment on lines +31 to +34
# Copy dependency files first for caching
COPY pyproject.toml uv.lock ./
COPY README.md ./

Comment thread Dockerfile
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 thread .dockerignore
Comment on lines +1 to +6
.git
.idea
__pycache__
*.pyc
.venv
.env
Comment on lines +20 to +22
},
"remoteUser": "root"
}
@FANNG1 FANNG1 merged commit d32323e into main Jun 30, 2026
1 check passed
@FANNG1 FANNG1 deleted the docker_env branch June 30, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants