21 lines · 646 B · Text
RawDownload
ARG NAMESPACE_BASE_IMAGE_REF="" # Your image must build FROM NAMESPACE_BASE_IMAGE_REFFROM ${NAMESPACE_BASE_IMAGE_REF} AS base # Remove problematic git-lfs packagecloud sourceRUN sudo rm -f /etc/apt/sources.list.d/*git-lfs*.list# Install git and SSH for cloning private repositoriesRUN sudo apt-get update && \    sudo apt-get install -y git openssh-client # Clone the Zed repositoryRUN git clone https://github.com/zed-industries/zed.git ~/zed # Run the Linux installation scriptWORKDIR /home/runner/zedRUN ./script/linux # Clean up unnecessary files to reduce image sizeRUN sudo apt-get clean && sudo rm -rf \    /home/runner/zed