Skip to content

Commit

Permalink
[docker] use one base image
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishnacore committed Sep 7, 2023
1 parent 36e3e07 commit f39743a
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 f39743a

Please sign in to comment.