From e2ff490fe5b5ddce8631a8e7296cda9ab7331f61 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Thu, 14 Apr 2022 16:59:49 +0200 Subject: [PATCH] docker: add support for multiarch builds --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 23a69ca..736ae35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17-alpine as builder +FROM --platform=${BUILDPLATFORM} golang:1.17-alpine as builder # Copy in the local repository to build from. COPY . /go/src/github.com/lightningnetwork/loop @@ -18,7 +18,7 @@ RUN apk add --no-cache --update alpine-sdk \ && make install # Start a new, final image to reduce size. -FROM alpine as final +FROM --platform=${BUILDPLATFORM} alpine as final # Expose lnd ports (server, rpc). EXPOSE 8081 11010