cuddle-image/templates/build_cuddle_image.Dockerfile

18 lines
461 B
Docker
Raw Normal View History

2022-08-13 12:23:13 +02:00
FROM rust:1.62.1-slim-bullseye as base
2022-08-12 02:06:19 +02:00
#as base
2022-08-11 23:10:39 +02:00
RUN apt-get update && apt-get upgrade -y
2022-08-11 23:22:12 +02:00
RUN apt-get install libssl-dev
RUN apt-get install -y -q build-essential curl git pkg-config
2022-08-11 23:10:39 +02:00
WORKDIR /app/cuddle/
2022-08-12 01:48:02 +02:00
RUN cargo install --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli
2022-08-12 02:30:44 +02:00
RUN export PATH="$PATH:/usr/local/cargo/bin/"
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"