-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
39 lines (25 loc) · 1.12 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
36
37
38
39
FROM zencash/gosu-base:latest
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get --no-install-recommends -y install apt-utils \
&& apt-get -y upgrade \
&& apt-get --no-install-recommends -y install build-essential git ruby-dev nodejs-legacy npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN gem install jekyll bundler
RUN npm install -g bower gulp
RUN mkdir -p /home/user
RUN git clone -b devweb.zencash.io --single-branch https://github.com/cronicc/botio.git /home/user/botio \
&& cd /home/user/botio \
&& npm install -g
RUN git clone -b master --single-branch https://github.com/cronicc/botio-files-zencash.io.git /home/user/botio-files-zencash.io \
&& cd /home/user/botio-files-zencash.io \
&& npm install
#move /home/user out of the way because it will interfere with user creation in entrypoint.sh
RUN mv /home/user /home/temp
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
EXPOSE 8000
CMD botio start -u $GITHUB_USER -p $GITHUB_PASS $DEBUG