Skip to content

Commit 2eaf85c

Browse files
committed
[docker] Add multi arch support with default support for amd64 and optional support for arm32v6
1 parent 8b8ee1b commit 2eaf85c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
FROM golang:1.10.0 AS builder
1+
ARG ARCH=amd64
2+
3+
FROM golang:1.10.0 AS builder-amd64
4+
5+
FROM arm32v6/golang:1.10.0 AS builder-arm32v6
6+
7+
FROM builder-${ARCH} AS builder
28

39
WORKDIR ${GOPATH}/src/github.com/mcuadros/ofelia
410
COPY . ${GOPATH}/src/github.com/mcuadros/ofelia
@@ -16,4 +22,4 @@ COPY --from=builder /go/bin/ofelia /usr/bin/ofelia
1622
VOLUME /etc/ofelia/
1723
ENTRYPOINT ["/usr/bin/ofelia"]
1824

19-
CMD ["daemon", "--config", "/etc/ofelia/config.ini"]
25+
CMD ["daemon", "--config", "/etc/ofelia/config.ini"]

0 commit comments

Comments
 (0)