Skip to content

Commit

Permalink
fix(docker): glibc problem (#165)
Browse files Browse the repository at this point in the history
[docker] use one base image
  • Loading branch information
Krishnacore authored Sep 8, 2023
1 parent 36e3e07 commit fb6a2de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM --platform=$BUILDPLATFORM rust:latest as build
FROM --platform=$BUILDPLATFORM debian:bullseye-slim as base
RUN apt update && apt install -y libudev-dev build-essential ca-certificates clang curl git libpq-dev libssl-dev pkg-config lsof lld
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH "$PATH:/root/.cargo/bin"

FROM base as build
WORKDIR /magi
ARG TARGETARCH

COPY ./platform.sh .
RUN ./platform.sh
RUN rustup target add $(cat /.platform)
Expand Down

0 comments on commit fb6a2de

Please sign in to comment.