forked from airgap-it/airgap-coin-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
82 lines (55 loc) · 2.49 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM node:16.13.1
RUN apt-get update && apt-get install -yq git python build-essential
# create app directory
RUN mkdir /app
WORKDIR /app
# Install app dependencies
COPY package.json /app
COPY package-lock.json /app
COPY scripts /app/scripts
COPY packages/core/package.json /app/packages/core/
COPY packages/core/scripts /app/packages/core/scripts
COPY packages/aeternity/package.json /app/packages/aeternity/
COPY packages/aeternity/scripts /app/packages/aeternity/scripts
COPY packages/astar/package.json /app/packages/astar/
COPY packages/astar/scripts /app/packages/astar/scripts
COPY packages/bitcoin/package.json /app/packages/bitcoin/
COPY packages/bitcoin/scripts /app/packages/bitcoin/scripts
COPY packages/cosmos/package.json /app/packages/cosmos/
COPY packages/cosmos/scripts /app/packages/cosmos/scripts
COPY packages/crypto/package.json /app/packages/crypto/
COPY packages/crypto/scripts /app/packages/crypto/scripts
COPY packages/ethereum/package.json /app/packages/ethereum/
COPY packages/ethereum/scripts /app/packages/ethereum/scripts
COPY packages/groestlcoin/package.json /app/packages/groestlcoin/
COPY packages/groestlcoin/scripts /app/packages/groestlcoin/scripts
COPY packages/icp/package.json /app/packages/icp/
COPY packages/icp/scripts /app/packages/icp/scripts
COPY packages/mina/package.json /app/packages/mina/
COPY packages/mina/scripts /app/packages/mina/scripts
COPY packages/module-kit/package.json /app/packages/module-kit/
COPY packages/module-kit/scripts /app/packages/module-kit/scripts
COPY packages/moonbeam/package.json /app/packages/moonbeam/
COPY packages/moonbeam/scripts /app/packages/moonbeam/scripts
COPY packages/optimism/package.json /app/packages/optimism/
COPY packages/optimism/scripts /app/packages/optimism/scripts
COPY packages/polkadot/package.json /app/packages/polkadot/
COPY packages/polkadot/scripts /app/packages/polkadot/scripts
COPY packages/substrate/package.json /app/packages/substrate/
COPY packages/substrate/scripts /app/packages/substrate/scripts
COPY packages/tezos/package.json /app/packages/tezos/
COPY packages/tezos/scripts /app/packages/tezos/scripts
COPY packages/serializer/package.json /app/packages/serializer/
COPY packages/serializer/scripts /app/packages/serializer/scripts
COPY lerna.json /app
# install dependencies
RUN npm ci
# Bundle app source
COPY . /app
RUN chmod +x ./npm-ci-publish-beta-only.sh
RUN chmod +x ./npm-ci-publish.sh
# set to production
RUN export NODE_ENV=production
# build
RUN npm run build
CMD ["npm", "run", "test"]