-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 813 Bytes
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
FROM ethereum/solc:stable as build
FROM alpine
LABEL name=sirhill/truffle
COPY --from=build /usr/bin/solc /usr/bin/solc
RUN apk add --update bash vim less sudo openssh \
nodejs yarn git openssl g++ tar python make curl
RUN mkdir /home/.yarn-global
RUN adduser -D -s /bin/bash -h /home/node -u 1000 node
USER node
RUN yarn config set prefix ~/.yarn-global
RUN yarn global add npm
RUN yarn global add node-gyp
RUN yarn global add sha3
RUN yarn global add keccakjs
RUN yarn global add truffle
RUN yarn global add ganache-cli
RUN echo "export PATH=$PATH:~/.yarn-global/bin" > ~/.bashrc
RUN mkdir /home/node/project
WORKDIR /home/node/project
RUN git clone https://github.com/tomlion/vim-solidity.git ~/.vim/
COPY .vimrc /home/node
EXPOSE 3000
EXPOSE 3001
EXPOSE 8080
EXPOSE 9545
ENTRYPOINT ["/bin/bash"]