From f847cb20a34039afe4066e9601ce67d91994ebb2 Mon Sep 17 00:00:00 2001 From: vodkaslime <646329483@qq.com> Date: Tue, 29 Aug 2023 18:19:54 +0800 Subject: [PATCH] fix: git information in health API response [TAB-177] (#375) * fix: add git information to health API response * chore: use gitcl --- .dockerignore | 1 - Dockerfile | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 309b0b7..de70e0d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ -**/.git **/target **/node_modules diff --git a/Dockerfile b/Dockerfile index 1132eaf..10ae87d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && \ pkg-config \ libssl-dev \ protobuf-compiler \ + git \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -19,9 +20,7 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" WORKDIR /root/workspace -COPY Cargo.toml Cargo.toml -COPY Cargo.lock Cargo.lock -COPY crates crates +COPY . . RUN mkdir -p /opt/tabby/bin RUN mkdir -p /opt/tabby/lib