cuddle-image/templates/build_cuddle_image.Dockerfile

24 lines
554 B
Docker
Raw Normal View History

2024-12-03 02:23:18 +01:00
FROM rust:1.83.0-slim-bullseye as base
2022-08-11 23:10:39 +02:00
2022-08-13 13:14:18 +02:00
RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get update -qq && \
apt-get install -y \
musl-tools \
musl-dev
RUN update-ca-certificates
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y -q build-essential curl git
WORKDIR /app/cuddle/
RUN cargo install --target x86_64-unknown-linux-musl --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli
2022-08-12 01:48:02 +02:00
2022-08-13 12:21:31 +02:00
FROM docker:stable-dind
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
2022-08-13 12:40:20 +02:00
ENV PATH="${PATH}:/usr/local/cargo/bin"
2022-08-13 17:59:48 +02:00