cuddle/templates/build_cuddle_image.Dockerfile

25 lines
509 B
Docker
Raw Normal View History

FROM rust:1.70-slim-bullseye as base
2022-08-14 21:06:07 +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/
2022-08-14 21:08:18 +02:00
COPY . .
RUN cargo install --target x86_64-unknown-linux-musl --path cuddle_cli
2022-08-14 21:06:07 +02:00
2022-08-21 16:59:40 +02:00
FROM docker:dind
2022-08-14 21:06:07 +02:00
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
ENV PATH="${PATH}:/usr/local/cargo/bin"