-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
30 lines (23 loc) · 913 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
#
# Thanks to Adam Miller <[email protected]> from
# https://github.com/fedora-cloud/Fedora-Dockerfiles
#
FROM centos:centos7
MAINTAINER blakeberg <[email protected]>
ENV SSH_USERPASS=newpass
RUN curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
RUN yum -y update; yum clean all
RUN yum -y install openssh-server passwd sudo nodejs git; yum clean all
RUN useradd -m meteor
RUN echo -e "$SSH_USERPASS\n$SSH_USERPASS" | (passwd --stdin meteor)
RUN echo ssh meteor password: $SSH_USERPASS
RUN bash -c 'echo "meteor ALL=(ALL:ALL) ALL" | (EDITOR="tee -a" visudo)'
ADD dummy-dapp-example/* /home/meteor/
RUN mkdir /var/run/sshd
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
RUN curl https://install.meteor.com/ | sh
RUN npm install -g meteor-build-client
RUN npm install solc
RUN npm install web3
EXPOSE 22 3000
ENTRYPOINT ["/usr/sbin/sshd", "-D"]