Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
collab: Override Cargo configuration in the `Dockerfile` (#17901)
Marshall Bowersdea85099a21f
diff --git a/.github/workflows/deploy_collab.yml b/.github/workflows/deploy_collab.ymlindex 4555698ecd5..6801be2a549 100644--- a/.github/workflows/deploy_collab.yml+++ b/.github/workflows/deploy_collab.yml@@ -75,9 +75,6 @@ jobs:with:clean: false- - name: Set up default .cargo/config.toml- run: cp ./.cargo/collab-config.toml ./.cargo/config.toml-- name: Build docker imagerun: docker build . --build-arg GITHUB_SHA=$GITHUB_SHA --tag registry.digitalocean.com/zed/collab:$GITHUB_SHAdiff --git a/Dockerfile b/Dockerfileindex 2185eb6cb4d..2fb5f041478 100644--- a/Dockerfile+++ b/Dockerfile@@ -4,6 +4,9 @@ FROM rust:1.81-bookworm as builderWORKDIR appCOPY . .+# Replace the Cargo configuration with the one used by collab.+COPY ./.cargo/collab-config.toml ./.cargo/config.toml+# Compile collab serverARG CARGO_PROFILE_RELEASE_PANIC=abortARG GITHUB_SHA