-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
35 lines (31 loc) · 976 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
FROM ubuntu:14.04
MAINTAINER "[email protected]"
RUN apt-get update && apt-get -y install git \
build-essential \
libtool \
autotools-dev \
automake \
autoconf \
wget \
openjdk-7-jdk \
default-jre \
unzip
RUN mkdir /JavaPrograms
RUN mkdir /code
WORKDIR /code
ADD . /code
RUN tar -xzvf /code/CTP.tar.gz
RUN chmod 777 -R /JavaPrograms
RUN chmod u+x /code/start.sh
ENV CTP_HOME /JavaPrograms
RUN echo "export CTP_HOME=/JavaPrograms" >> $HOME/.profile
RUN echo "export CTP_HOME=/JavaPrograms" >> $HOME/.bashrc
RUN cp /code/CTP.conf /etc/init/CTP.conf
RUN cp /code/ctpService-ubuntu.sh /code/CTP/linux/ctpService-ubuntu.sh
# Add our custom configuration files
RUN cp /code/config.xml /JavaPrograms/config.xml
#RUN wget http://mirc.rsna.org/ImageIO/linux-x86_64.zip
#RUN unzip linux-x86_64.zip
#RUN mv linux-x86_64/* /JavaPrograms
EXPOSE 1080
CMD /bin/bash /code/start.sh