Skip to content

Commit 1d06398

Browse files
committed
fix
1 parent 5512fa4 commit 1d06398

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

images/xud/Dockerfile.aarch64

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
FROM node:12-alpine3.12 AS builder-seedutil
2+
RUN apk add --no-cache go
3+
WORKDIR /xud
4+
ADD .src .
5+
RUN npm run compile:seedutil
6+
RUN strip seedutil/seedutil
7+
18
FROM node:12-alpine3.12 AS builder
2-
RUN apk add --no-cache git rsync bash go
9+
RUN apk add --no-cache git rsync bash
310
WORKDIR /xud
411
ADD .src .
512
ARG GIT_REVISION
@@ -12,10 +19,8 @@ RUN npm install \
1219
--node_sqlite3_binary_host_mirror=https://raw.githubusercontent.com/ExchangeUnion/grpc-node-precompiled-binaries/master
1320
RUN cp /tmp/package.json package.json
1421
RUN npm run compile
15-
RUN npm run compile:seedutil
1622
RUN npm prune --production
17-
RUN rm -rf seedutil/go
18-
RUN strip seedutil/seedutil
23+
COPY --from=builder-seedutil /xud/seedutil/seedutil seedutil/
1924

2025
FROM node:12-alpine3.12
2126
RUN apk add --no-cache bash tor
@@ -25,5 +30,3 @@ WORKDIR /app
2530
RUN ln -s /app/bin/xud /usr/local/bin/xud
2631
RUN ln -s /app/bin/xucli /usr/local/bin/xucli
2732
ENTRYPOINT ["/entrypoint.sh"]
28-
VOLUME [ "/root/.xud" ]
29-
EXPOSE 8887 18887 28887

0 commit comments

Comments
 (0)