forked from rjrivero/docker-nimble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (23 loc) · 834 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
FROM ubuntu:xenial
ENV NIMBLE_VERSION=3.5.0-5
## Install nimble and move all config files to /etc/nimble.conf
##
RUN echo "deb http://nimblestreamer.com/ubuntu xenial/" > /etc/apt/sources.list.d/nimblestreamer.list \
&& apt-key adv --fetch-keys http://nimblestreamer.com/gpg.key \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y nimble=$NIMBLE_VERSION \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& mkdir -p /var/log/nimble && ln -sf /dev/stdout /var/log/nimble/nimble.log \
&& cp /etc/nimble/nimble.conf /etc/nimble.conf.default \
&& rm -f /etc/nimble/* \
&& chown -R nimble:root /etc/nimble
## Configuration volume
##
VOLUME /etc/nimble
## Cache volume
##
VOLUME /var/cache/nimble
EXPOSE 1935 8081
USER nimble
COPY start /
CMD ["/start"]