Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
TOwInOK committed Oct 26, 2024
1 parent 8493fb3 commit 6d94347
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
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

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
Expand Down

0 comments on commit 6d94347

Please sign in to comment.