File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change
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
+
1
8
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
3
10
WORKDIR /xud
4
11
ADD .src .
5
12
ARG GIT_REVISION
@@ -12,10 +19,8 @@ RUN npm install \
12
19
--node_sqlite3_binary_host_mirror=https://raw.githubusercontent.com/ExchangeUnion/grpc-node-precompiled-binaries/master
13
20
RUN cp /tmp/package.json package.json
14
21
RUN npm run compile
15
- RUN npm run compile:seedutil
16
22
RUN npm prune --production
17
- RUN rm -rf seedutil/go
18
- RUN strip seedutil/seedutil
23
+ COPY --from=builder-seedutil /xud/seedutil/seedutil seedutil/
19
24
20
25
FROM node:12-alpine3.12
21
26
RUN apk add --no-cache bash tor
@@ -25,5 +30,3 @@ WORKDIR /app
25
30
RUN ln -s /app/bin/xud /usr/local/bin/xud
26
31
RUN ln -s /app/bin/xucli /usr/local/bin/xucli
27
32
ENTRYPOINT ["/entrypoint.sh"]
28
- VOLUME [ "/root/.xud" ]
29
- EXPOSE 8887 18887 28887
You can’t perform that action at this time.
0 commit comments