forked from DAppDevConsulting/EasyTCR
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (27 loc) · 786 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
32
33
34
35
36
37
38
39
40
41
FROM node:latest
# Update aptitude with new repo
RUN apt-get update
# Install software
RUN apt-get install -y git
# Make ssh dir
RUN mkdir /root/.ssh/
# Copy over private key, and set permissions
ADD id_rsa /root/.ssh/id_rsa
# Protect key
RUN chmod 600 /root/.ssh/id_rsa
# Create known_hosts
RUN touch /root/.ssh/known_hosts
# Add gitlab key
RUN ssh-keyscan gitlab.com >> /root/.ssh/known_hosts
# install server to serve static files
RUN npm install -g serve
# Clone the conf files into the docker container
#RUN git clone [email protected]:ethereum-tcr/ethereum-tcr-ui.git
WORKDIR /ethereum-tcr-ui
ADD . /ethereum-tcr-ui
COPY secrets.json /ethereum-tcr-ui/src
COPY apiConfig.js /ethereum-tcr-ui/src
RUN npm install
RUN npm run build
EXPOSE 3333
CMD serve -p 3333 -s build