From 6d943474b6d10dedb825c440613b0198e7b5274d Mon Sep 17 00:00:00 2001 From: "TOwInOK 60252419+TOwInOK@users.noreply.github.com" <60252419+TOwInOK@users.noreply.github.com> Date: Sun, 27 Oct 2024 06:05:20 +0700 Subject: [PATCH] fix deps --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8ff929f..a1091c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,15 @@ ARG TARGETARCH FROM alpine:latest AS base -# Установка только необходимых зависимостей -RUN apk add --no-cache musl-dev openssl-dev pkgconfig curl gcc \ +RUN apk add --no-cache \ + musl-dev \ + openssl-dev \ + openssl-libs-static \ + pkgconfig \ + curl \ + gcc \ + make \ + perl \ && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable \ && ~/.cargo/bin/cargo install cargo-chef --locked --version 0.1.68 @@ -10,6 +17,9 @@ ENV PATH="/root/.cargo/bin:${PATH}" ENV CARGO_NET_GIT_FETCH_WITH_CLI=true ENV CARGO_HTTP_MULTIPLEXING=false +ENV OPENSSL_STATIC=1 +ENV OPENSSL_DIR=/usr + # Первый этап - Подготовка рецепта FROM base AS planner WORKDIR /app