cuddle/templates/build_cuddle_image.Dockerfile
kjuulh 68b46e4bec
Some checks failed
continuous-integration/drone/push Build is failing
feat: with updated docker file and friends
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-07-27 15:04:46 +02:00

29 lines
593 B
Docker

FROM rustlang/rust:nightly 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:dind
RUN apk add bash git
COPY --from=1password/op:2 /usr/local/bin/op /usr/local/bin/op
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
ENV PATH="${PATH}:/usr/local/cargo/bin"