Fix tekton pipelines.
This commit is contained in:
@@ -9,8 +9,9 @@ RUN mkdir /root/natter
|
||||
WORKDIR /root/natter
|
||||
COPY --link . .
|
||||
# TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static"
|
||||
RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked CARGO_TARGET_DIR=/target cargo build --profile release-lto
|
||||
ENV RUSTUP_PERMIT_COPY_RENAME=true
|
||||
RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked CARGO_TARGET_DIR=/target cargo build --profile lto
|
||||
|
||||
FROM alpine:$ALPINE_VERSION AS runner
|
||||
|
||||
COPY --link --from=builder /target/release-lto/natter /usr/bin/
|
||||
COPY --link --from=builder /target/lto/natter /usr/bin/
|
||||
|
||||
Reference in New Issue
Block a user