update dockerfile
This commit is contained in:
parent
90856717e4
commit
9f4fb6c274
1 changed files with 3 additions and 1 deletions
|
|
@ -11,7 +11,8 @@ RUN apt update && apt install -y \
|
||||||
curl \
|
curl \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
protobuf-compiler
|
protobuf-compiler \
|
||||||
|
zlib1g
|
||||||
|
|
||||||
# Copy dependency files first for better caching
|
# Copy dependency files first for better caching
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
|
|
@ -23,6 +24,7 @@ COPY tbm-proto ./tbm-proto
|
||||||
RUN curl -X GET https://pakin-inspiron-15-3530.tail110d9.ts.net/pakin/tbm-git-repo-service/releases/download/config/.tbcfg -o .tbcfg
|
RUN curl -X GET https://pakin-inspiron-15-3530.tail110d9.ts.net/pakin/tbm-git-repo-service/releases/download/config/.tbcfg -o .tbcfg
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
|
ENV RUSTFLAGS="-C target-feature=+crt-static"
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
# Builder
|
# Builder
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue