adjust dockerfile
This commit is contained in:
parent
ffc2dfbbad
commit
bfdf7dcb52
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
||||||
# Step -1: Grab mold
|
|
||||||
FROM rust:1.69.0-bullseye as rust-base
|
FROM rust:1.69.0-bullseye as rust-base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends curl clang
|
RUN apt-get update && apt-get install -y --no-install-recommends curl clang
|
||||||
|
@ -12,6 +11,8 @@ ENV RUSTFLAGS="-C link-arg=-fuse-ld=/mold"
|
||||||
FROM rust-base as builder
|
FROM rust-base as builder
|
||||||
COPY . .
|
COPY . .
|
||||||
ARG SERVICE
|
ARG SERVICE
|
||||||
|
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
|
||||||
|
ENV RUSTFLAGS="-C link-arg=-fuse-ld=/mold"
|
||||||
RUN cargo build --release --bin ${SERVICE}
|
RUN cargo build --release --bin ${SERVICE}
|
||||||
|
|
||||||
FROM debian:bullseye-slim as runtime
|
FROM debian:bullseye-slim as runtime
|
||||||
|
|
Loading…
Add table
Reference in a new issue