From 857dfffabedf9b70cfc8ba1ce651eb08476e2dbe Mon Sep 17 00:00:00 2001 From: d1snin <~@d1snin.fun> Date: Mon, 20 Sep 2021 15:06:59 +0300 Subject: [PATCH] collapse `RUN` declaration in Dockerfile. (see https://stackoverflow.com/questions/39223249/multiple-run-vs-single-chained-run-in-dockerfile-which-is-better) --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 869a953..dfb1148 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,11 @@ RUN npm i -g npm@>=7 RUN npm i # Ensure these directories & files exist for compose volumes -RUN mkdir -p /opt/ass/uploads/thumbnails/ -RUN mkdir -p /opt/ass/share/ -RUN touch /opt/ass/config.json -RUN touch /opt/ass/auth.json -RUN touch /opt/ass/data.json +RUN mkdir -p /opt/ass/uploads/thumbnails/ && \ + mkdir -p /opt/ass/share/ && \ + touch /opt/ass/config.json && \ + touch /opt/ass/auth.json && \ + touch /opt/ass/data.json # Start ass CMD npm start