cuddle-image/templates/build_cuddle_image.Dockerfile
kjuulh b13aade195
Some checks failed
continuous-integration/drone/push Build is failing
with musl-tools
2022-08-13 12:59:43 +02:00

17 lines
500 B
Docker

FROM rust:1.62.1-slim-bullseye as base
RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get update && apt-get upgrade -y
RUN apt-get install libssl-dev
RUN apt-get install -y -q build-essential curl git pkg-config musl-tools
WORKDIR /app/cuddle/
RUN cargo install --target x86_64-unknown-linux-musl --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli
FROM docker:stable-dind
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
ENV PATH="${PATH}:/usr/local/cargo/bin"