From dc007c34383369a47bbf96d5c0a2b4a9b162ab7e Mon Sep 17 00:00:00 2001 From: Marcello DeSales Date: Thu, 23 Nov 2023 07:53:49 -0800 Subject: [PATCH] :whale: :recycle: add docker ARG BASE_IMAGE for builder --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 18686200..eb1024a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ ##### docker buildx create --use --name multi-builder --platform linux/arm64,linux/amd64 # https://github.com/docker/buildx/issues/318#issuecomment-1023226339 #FROM --platform=$BUILDPLATFORM rustlang/rust:nightly-buster-slim as builder -FROM rustlang/rust:nightly-buster-slim as builder +ARG BASE_IMAGE +FROM ${BASE_IMAGE} AS builder # Installing git because of the workaround for the config # https://github.com/rust-lang/cargo/issues/10781#issuecomment-1441071052