From 4ca7dfbbd72f8caa4bd1e03154ce8cfe9930e86f Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 13 Aug 2022 12:50:44 +0200 Subject: [PATCH] with musl image --- .drone.yml | 2 +- templates/build_cuddle_image.Dockerfile | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5852735..90fd5d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -74,7 +74,7 @@ steps: from_secret: docker_password depends_on: - "load_secret" - #- "server" + - "server" - name: send telegram notification image: appleboy/drone-telegram diff --git a/templates/build_cuddle_image.Dockerfile b/templates/build_cuddle_image.Dockerfile index a8714cb..d64867d 100644 --- a/templates/build_cuddle_image.Dockerfile +++ b/templates/build_cuddle_image.Dockerfile @@ -1,6 +1,6 @@ FROM rust:1.62.1-slim-bullseye as base -#as base +RUN rustup target add x86_64-unknown-linux-musl RUN apt-get update && apt-get upgrade -y RUN apt-get install libssl-dev @@ -8,8 +8,7 @@ RUN apt-get install -y -q build-essential curl git pkg-config WORKDIR /app/cuddle/ -RUN cargo install --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli -RUN export PATH="$PATH:/usr/local/cargo/bin/" +RUN cargo install --target x86_64-unknown-linux-musl --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli FROM docker:stable-dind