-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 875 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 875 Bytes
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 openjdk:8-jre-stretch
EXPOSE 8080/tcp
# Setup
RUN apt-get update && \
apt-get -y install python2.7 \
python-requests \
supervisor
ADD download-streama.py /download-streama.py
ADD supervisord.conf /etc/supervisor/supervisord.conf
RUN chmod +x /download-streama.py
# Install Streama
WORKDIR /opt
RUN python /download-streama.py && \
ln -s /opt/*.war /opt/streama.war && \
chmod +x /opt/*
# Cleanup
RUN apt-get -y remove build-essential \
python-dev \
libz-dev \
wget && \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/download-streama.py
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
VOLUME [ "/opt/streama" ]