forked from XinFinOrg/MasterNode-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 786 Bytes
/
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
FROM node:16.16.0-alpine
LABEL maintainer="admin@xinfin.network"
WORKDIR /app
COPY package*.json ./
RUN apk --no-cache add \
bash \
git \
curl \
build-base \
libffi-dev \
openssl-dev \
bzip2-dev \
zlib-dev \
readline-dev \
sqlite-dev \
&& curl https://pyenv.run | bash \
&& export PATH="/root/.pyenv/bin:$PATH" \
&& eval "$(pyenv init -)" \
&& eval "$(pyenv virtualenv-init -)" \
&& pyenv install 2.7.18 3.9.0 \
&& pyenv global 3.9.0 2.7.18 \
&& npm install --legacy-peer-deps
COPY . .
RUN mkdir -p build/contracts \
&& mv abis/* build/contracts/ \
&& npm run build \
&& rm -rf node_modules \
&& npm install --production --legacy-peer-deps
ENTRYPOINT ["npm"]
CMD ["start"]