fix: git information in health API response [TAB-177] (#375)

* fix: add git information to health API response

* chore: use gitcl
release-0.0
vodkaslime 2023-08-29 18:19:54 +08:00 committed by GitHub
parent 6eae3dc976
commit f847cb20a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -1,3 +1,2 @@
**/.git
**/target **/target
**/node_modules **/node_modules

View File

@ -10,6 +10,7 @@ RUN apt-get update && \
pkg-config \ pkg-config \
libssl-dev \ libssl-dev \
protobuf-compiler \ protobuf-compiler \
git \
&& \ && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* 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}" ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /root/workspace WORKDIR /root/workspace
COPY Cargo.toml Cargo.toml COPY . .
COPY Cargo.lock Cargo.lock
COPY crates crates
RUN mkdir -p /opt/tabby/bin RUN mkdir -p /opt/tabby/bin
RUN mkdir -p /opt/tabby/lib RUN mkdir -p /opt/tabby/lib