From 23f841b6632a4bee5f7b18be10d4bd92a5a9231b Mon Sep 17 00:00:00 2001 From: redxef Date: Wed, 30 Oct 2024 00:13:32 +0100 Subject: [PATCH] ci: reduce Dockerfile for ci test. --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8df87d0..452cc27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,14 @@ FROM rust:alpine AS buildimg WORKDIR /usr/src/concourse-http-resource RUN apk add --no-cache musl-dev \ && rustup target add $(uname -m)-unknown-linux-musl -COPY . . -RUN cargo build --release --target $(uname -m)-unknown-linux-musl \ - && mkdir -p artifacts/ \ - && cp target/$(uname -m)-unknown-linux-musl/release/concourse-http-resource ./artifacts \ - && cd ./artifacts \ - && ln -s concourse-http-resource check \ - && ln -s concourse-http-resource in \ - && ln -s concourse-http-resource out +#COPY . . +#RUN cargo build --release --target $(uname -m)-unknown-linux-musl \ +# && mkdir -p artifacts/ \ +# && cp target/$(uname -m)-unknown-linux-musl/release/concourse-http-resource ./artifacts \ +# && cd ./artifacts \ +# && ln -s concourse-http-resource check \ +# && ln -s concourse-http-resource in \ +# && ln -s concourse-http-resource out FROM scratch -COPY --from=buildimg /usr/src/concourse-http-resource/artifacts /opt/resource +#COPY --from=buildimg /usr/src/concourse-http-resource/artifacts /opt/resource