Getting docker ready for development

This commit is contained in:
James Barnsley
2019-04-21 14:05:20 +12:00
parent aed14ac27a
commit 614dc2da8c
2 changed files with 11 additions and 1 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -1,5 +1,8 @@
FROM debian:stretch-slim
# Copy the current codebase
COPY . /iris
RUN set -ex \
# Official Mopidy install for Debian/Ubuntu along with some extensions
# (see https://docs.mopidy.com/en/latest/installation/debian/ )
@ -12,6 +15,7 @@ RUN set -ex \
gstreamer1.0-alsa \
gstreamer1.0-plugins-bad \
python-crypto \
git \
&& 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 \
&& apt-get update \
@ -22,19 +26,24 @@ RUN set -ex \
&& curl -L https://bootstrap.pypa.io/get-pip.py | python - \
&& pip install -U six pyasn1 requests[security] cryptography \
&& pip install \
Mopidy-Iris \
Mopidy-Moped \
Mopidy-GMusic \
Mopidy-Pandora \
Mopidy-YouTube \
pyopenssl \
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 \
&& ln -s /config /var/lib/mopidy/.config/mopidy \
# Clean-up
&& apt-get purge --auto-remove -y \
curl \
gcc \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache