/
Dockerfile
65 lines (44 loc) · 1.59 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# FROM golang:1.14-alpine as builder
# RUN apk add --no-cache make gcc musl-dev linux-headers git
# ADD . /incognitochain
# RUN cd /incognitochain && make build
# # Bring Incognito bin file into a second stage deploy alpine container
# FROM ubuntu:16.04
# WORKDIR /incognitochain
# RUN apt-get update
# RUN apt-get install -y ca-certificates cronolog cron
# RUN apt-get install -y dnsutils
# COPY ./removeoldlog /etc/cron.d/removeoldlog
# RUN chmod 0644 /etc/cron.d/removeoldlog
# RUN crontab /etc/cron.d/removeoldlog
# ARG commit=commit
# ENV commit=$commit
# #COPY --from=builder /incognitochain/incognito /usr/local/bin/
# COPY --from=builder /incognitochain/incognito /incognitochain
# COPY --from=builder /incognitochain/priv2.json /incognitochain/
# COPY --from=builder /incognitochain/whitelist.json /incognitochain/
# COPY --from=builder /incognitochain/config/ /incognitochain/config/
# COPY --from=builder /incognitochain/run_incognito.sh /incognitochain/
# RUN chmod +x /incognitochain/run_incognito.sh
# CMD ["/bin/bash","run_incognito.sh"]
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y ca-certificates cronolog cron
RUN apt-get install -y dnsutils
COPY ./removeoldlog /etc/cron.d/removeoldlog
RUN chmod 0644 /etc/cron.d/removeoldlog
RUN crontab /etc/cron.d/removeoldlog
ARG commit=commit
ENV commit=$commit
COPY ./incognito /
RUN chmod +x /incognito
COPY ./priv2.json /
COPY ./whitelist.json /
COPY ./config/ /config
COPY ./run_incognito.sh /
RUN mkdir /utility
CMD ["/bin/bash","run_incognito.sh"]
ARG commit=commit
ENV commit=$commit
COPY ./incognito /
RUN chmod +x /incognito