-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
31 lines (26 loc) · 894 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
FROM node:10.16.0-slim
ENV DEVELOPMENT=false
ENV BITPATH=/bit-bin
#Install ssh and bit dependencies
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y vim nano openssh-server curl && mkdir /var/run/sshd
RUN apt-get install -y apt-transport-https gcc make python g++
RUN apt-get install git -y
RUN npm install -g [email protected]
# Install latest (stable) Bit version
#RUN curl https://bitsrc.jfrog.io/bitsrc/api/gpg/key/public | apt-key add -
#RUN sh -c "echo 'deb http://bitsrc.jfrog.io/bitsrc/bit-deb all stable' >> /etc/apt/sources.list"
#RUN apt-get update
#RUN apt-get install bit -y
RUN npm install -g bit-bin
RUN bit config set analytics_reporting false
RUN bit config set error_reporting false
RUN bit config set no_warnings true
RUN mkdir -p /root/.ssh
RUN mkdir /tmp/scope
WORKDIR /tmp/scope
ADD init.sh .
RUN chmod +x init.sh
EXPOSE 22
CMD ["/tmp/scope/init.sh"]