Getting docker ready for development
This commit is contained in:
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules
|
||||||
11
Dockerfile
11
Dockerfile
@ -1,5 +1,8 @@
|
|||||||
FROM debian:stretch-slim
|
FROM debian:stretch-slim
|
||||||
|
|
||||||
|
# Copy the current codebase
|
||||||
|
COPY . /iris
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
# Official Mopidy install for Debian/Ubuntu along with some extensions
|
# Official Mopidy install for Debian/Ubuntu along with some extensions
|
||||||
# (see https://docs.mopidy.com/en/latest/installation/debian/ )
|
# (see https://docs.mopidy.com/en/latest/installation/debian/ )
|
||||||
@ -12,6 +15,7 @@ RUN set -ex \
|
|||||||
gstreamer1.0-alsa \
|
gstreamer1.0-alsa \
|
||||||
gstreamer1.0-plugins-bad \
|
gstreamer1.0-plugins-bad \
|
||||||
python-crypto \
|
python-crypto \
|
||||||
|
git \
|
||||||
&& curl -L https://apt.mopidy.com/mopidy.gpg | apt-key add - \
|
&& curl -L https://apt.mopidy.com/mopidy.gpg | apt-key add - \
|
||||||
&& curl -L https://apt.mopidy.com/mopidy.list -o /etc/apt/sources.list.d/mopidy.list \
|
&& curl -L https://apt.mopidy.com/mopidy.list -o /etc/apt/sources.list.d/mopidy.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
@ -22,19 +26,24 @@ RUN set -ex \
|
|||||||
&& curl -L https://bootstrap.pypa.io/get-pip.py | python - \
|
&& curl -L https://bootstrap.pypa.io/get-pip.py | python - \
|
||||||
&& pip install -U six pyasn1 requests[security] cryptography \
|
&& pip install -U six pyasn1 requests[security] cryptography \
|
||||||
&& pip install \
|
&& pip install \
|
||||||
Mopidy-Iris \
|
|
||||||
Mopidy-Moped \
|
Mopidy-Moped \
|
||||||
Mopidy-GMusic \
|
Mopidy-GMusic \
|
||||||
Mopidy-Pandora \
|
Mopidy-Pandora \
|
||||||
Mopidy-YouTube \
|
Mopidy-YouTube \
|
||||||
pyopenssl \
|
pyopenssl \
|
||||||
youtube-dl \
|
youtube-dl \
|
||||||
|
# Clone Iris from repo and install in development (for hot-loading)
|
||||||
|
#&& git clone https://github.com/jaedb/Iris.git /var/lib/mopidy/iris \
|
||||||
|
&& cd /iris \
|
||||||
|
&& python setup.py develop \
|
||||||
|
&& cd / \
|
||||||
&& mkdir -p /var/lib/mopidy/.config \
|
&& mkdir -p /var/lib/mopidy/.config \
|
||||||
&& ln -s /config /var/lib/mopidy/.config/mopidy \
|
&& ln -s /config /var/lib/mopidy/.config/mopidy \
|
||||||
# Clean-up
|
# Clean-up
|
||||||
&& apt-get purge --auto-remove -y \
|
&& apt-get purge --auto-remove -y \
|
||||||
curl \
|
curl \
|
||||||
gcc \
|
gcc \
|
||||||
|
git \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user