-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (30 loc) · 1001 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
FROM phusion/baseimage
# start off with standard ubuntu images
# Set local and enable UTF-8
ENV LANG C.UTF-8
ENV LANGUAGE C
ENV LC_ALL C.UTF-8
#java11
RUN apt-get update && apt-get install -y software-properties-common python-software-properties
RUN add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
apt-get install -y openjdk-11-jdk && \
apt-get install -y ant && \
apt-get clean;
# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f;
RUN apt-get install gnupg2 -y
RUN gpg2 --recv-keys 75CEBDE82D6BECC940EC0D22B3E38C4A2BBDBA1E
RUN mkdir /tndex
ADD . /tndex
# set ndex to listen on all interfaces
#RUN echo 'nxt.allowedBotHosts=*' >> /tndex/conf/nxt.properties
#RUN echo 'nxt.apiServerHost=0.0.0.0' >> /tndex/conf/nxt.properties
#RUN chmod +x /docker_start.sh
RUN cd /tndex; ./compile.sh
# both ndex ports get exposed
EXPOSE 6898 6876
CMD ["/tndex/docker_start.sh"]