-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (25 loc) · 632 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
FROM node:10.6.0
WORKDIR /cicada
RUN apt update
RUN apt install sudo
RUN apt install -y python
RUN apt install -y python-pip
RUN pip install requests
RUN git clone https://github.com/krishnasrinivas/wetty.git .
RUN npm i -g yarn
RUN yarn
RUN yarn build
RUN useradd user -d /home/user
WORKDIR /home/user
ARG PASSWORD=password
ENV PASSWORD=$PASSWORD
RUN echo "$PASSWORD\n$PASSWORD" | passwd user
RUN echo "user ALL = NOPASSWD: ALL" >> /etc/sudoers
ARG TOKEN=token
ENV TOKEN=$TOKEN
RUN export TOKEN=$TOKEN
RUN echo $TOKEN > /cicada/token
COPY ./client/* /bin/
COPY ./questions/* /home/user/
WORKDIR /cicada
CMD ["node", "index.js"]