From c0f5229af1bc733c3139c0d671390ccd1aaff1fd Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Tue, 3 Jan 2023 08:01:14 +1300 Subject: [PATCH] Dockerfile installing nodejs and building frontend - Need to experiment with file size reduction --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ad485f1a..52decb25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -109,6 +109,7 @@ RUN python3 -m pip install cffi ADD https://api.github.com/repos/jaedb/Iris/git/refs/heads/master version.json RUN git clone --depth 1 --single-branch -b master https://github.com/jaedb/Iris.git /iris \ && cd /iris \ + && npm install \ && npm run prod \ && python3 setup.py develop \ && mkdir -p /var/lib/mopidy/.config \ @@ -135,7 +136,10 @@ COPY docker/requirements.txt . RUN python3 -m pip install -r requirements.txt # Cleanup -RUN apt-get clean all && rm -rf /var/lib/apt/lists/* && rm -rf /root/.cache +RUN apt-get clean all \ + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /root/.cache \ + && rm -rf /iris/node_modules COPY docker/entrypoint.sh /entrypoint.sh