Skip to content

Commit fd811a8

Browse files
authored
Merge pull request #480 from bhandras/docker-fix
2 parents b5e7e3d + e2ff490 commit fd811a8

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)