forked from atende/crowd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (24 loc) · 862 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
FROM atende/baseimage-jdk:jdk8
MAINTAINER Giovanni Silva giovanni@atende.info
ENV SOFTWARE_NAME=crowd
ENV SOFTWARE_VERSION=2.8.3
ENV SOFTWARE_PORT=8095
ENV SCALA_HOME /usr/local/scala
# Disable SSH (Not using it at the moment).
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
COPY install.sh /root/install.sh
RUN chmod +x /root/install.sh
# Install
RUN mkdir /root/scripts
COPY scripts/install_impl.sh /root/scripts/install_impl.sh
COPY scripts/configuration.scala /root/scripts/configuration.scala
COPY install_tools.sh /root/install_tools.sh
RUN chmod +x /root/scripts/install_impl.sh;chmod +x /root/install_tools.sh
RUN /root/install_tools.sh
RUN /root/install.sh
# Run
COPY run.sh /etc/my_init.d/run.sh
COPY scripts/run_impl.sh /root/scripts/run_impl.sh
RUN chmod +x /etc/my_init.d/run.sh
EXPOSE 8095
CMD ["/sbin/my_init"]