Skip to content

Commit e2ff490

Browse files
committed
docker: add support for multiarch builds
1 parent b5e7e3d commit e2ff490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17-alpine as builder
1+
FROM --platform=${BUILDPLATFORM} golang:1.17-alpine as builder
22

33
# Copy in the local repository to build from.
44
COPY . /go/src/github.com/lightningnetwork/loop
@@ -18,7 +18,7 @@ RUN apk add --no-cache --update alpine-sdk \
1818
&& make install
1919

2020
# Start a new, final image to reduce size.
21-
FROM alpine as final
21+
FROM --platform=${BUILDPLATFORM} alpine as final
2222

2323
# Expose lnd ports (server, rpc).
2424
EXPOSE 8081 11010

0 commit comments

Comments
 (0)