From 2688b9f3978bbf5adf7079005479a2ab79eda578 Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Sun, 11 May 2025 14:56:18 +0100 Subject: [PATCH] Copy remaining files in one step. --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 495d49c7..ee58ba0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,23 +68,20 @@ RUN ln -s ./nginx/crontab /var/spool/cron/crontabs/root && \ COPY package.json ./ RUN npm install --quiet +# Copy remaining files +COPY . ./ + # NodeODM setup -COPY --chmod=0755 nginx/letsencrypt-autogen.sh ./nginx/letsencrypt-autogen.sh -COPY nodeodm ./nodeodm -RUN ./nodeodm/setup.sh && \ +RUN chmod +x ./nginx/letsencrypt-autogen.sh && \ + ./nodeodm/setup.sh && \ ./nodeodm/cleanup.sh # Install and run webpack build # Note webpack CLI is also used in `rebuildplugins` below -COPY webpack.config.js ./ -COPY app ./app RUN npm install --quiet -g webpack@5.89.0 && \ npm install --quiet -g webpack-cli@5.1.4 && \ webpack --mode production -# Copy remaining files -COPY . ./ - # Django setup RUN python manage.py collectstatic --noinput && \ python manage.py rebuildplugins && \