concourse-http-resource/Dockerfile

16 lines
592 B
Text
Raw Normal View History

2024-10-29 21:26:04 +01:00
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
2024-10-30 00:13:32 +01:00
#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
2024-10-29 21:26:04 +01:00
FROM scratch
2024-10-30 00:13:32 +01:00
#COPY --from=buildimg /usr/src/concourse-http-resource/artifacts /opt/resource