-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
35 lines (29 loc) · 1.08 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
FROM blcksync/alpine-node:latest as builder
LABEL maintainer="alee-blocksync"
ENV SHELL=/bin/bash
COPY package.json /root/package.json
# COPY package-lock.json /root/package-lock.json
RUN cd /root; \
apk update && apk upgrade && \
apk add --no-cache bash git \
busybox-extras \
python \
python-dev \
py-pip \
libtool \
autoconf \
automake \
build-base \
make gcc musl-dev linux-headers \
ca-certificates \
python2 \
py-setuptools \
&& rm -rf /var/cache/apk/* \
&& if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python2.7 /usr/bin/python; fi \
&& if [[ ! -e /usr/bin/python-config ]]; then ln -sf /usr/bin/python2.7-config /usr/bin/python-config; fi \
&& if [[ ! -e /usr/bin/easy_install ]]; then ln -sf /usr/bin/easy_install-2.7 /usr/bin/easy_install; fi ; \
npm install -g [email protected] && npm install --python=/usr/bin/python && \
npm install -g [email protected] [email protected] @truffle/[email protected] [email protected] [email protected] [email protected] core-js@^3;
USER root
WORKDIR /root
CMD ["bash"]