ci: reduce Dockerfile for ci test.
This commit is contained in:
parent
020d9a7e93
commit
23f841b663
1 changed files with 9 additions and 9 deletions
18
Dockerfile
18
Dockerfile
|
@ -2,14 +2,14 @@ FROM rust:alpine AS buildimg
|
||||||
WORKDIR /usr/src/concourse-http-resource
|
WORKDIR /usr/src/concourse-http-resource
|
||||||
RUN apk add --no-cache musl-dev \
|
RUN apk add --no-cache musl-dev \
|
||||||
&& rustup target add $(uname -m)-unknown-linux-musl
|
&& rustup target add $(uname -m)-unknown-linux-musl
|
||||||
COPY . .
|
#COPY . .
|
||||||
RUN cargo build --release --target $(uname -m)-unknown-linux-musl \
|
#RUN cargo build --release --target $(uname -m)-unknown-linux-musl \
|
||||||
&& mkdir -p artifacts/ \
|
# && mkdir -p artifacts/ \
|
||||||
&& cp target/$(uname -m)-unknown-linux-musl/release/concourse-http-resource ./artifacts \
|
# && cp target/$(uname -m)-unknown-linux-musl/release/concourse-http-resource ./artifacts \
|
||||||
&& cd ./artifacts \
|
# && cd ./artifacts \
|
||||||
&& ln -s concourse-http-resource check \
|
# && ln -s concourse-http-resource check \
|
||||||
&& ln -s concourse-http-resource in \
|
# && ln -s concourse-http-resource in \
|
||||||
&& ln -s concourse-http-resource out
|
# && ln -s concourse-http-resource out
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=buildimg /usr/src/concourse-http-resource/artifacts /opt/resource
|
#COPY --from=buildimg /usr/src/concourse-http-resource/artifacts /opt/resource
|
||||||
|
|
Loading…
Reference in a new issue