cuddle/templates/build_cuddle_image.Dockerfile
kjuulh 0ec196e8c9
All checks were successful
continuous-integration/drone/push Build is passing
with real exit
2022-08-14 22:06:31 +02:00

25 lines
518 B
Docker

FROM rust:1.62.1-slim-bullseye as base
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/
COPY . .
RUN cargo install --target x86_64-unknown-linux-musl --path cuddle_cli
FROM docker:stable-dind
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
ENV PATH="${PATH}:/usr/local/cargo/bin"