From fa496d1793695c8187cc1aa8b51efd081f32a2d2 Mon Sep 17 00:00:00 2001 From: daniel-j Date: Wed, 6 Dec 2023 18:19:34 +0100 Subject: [PATCH] change order --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1178eef..98f9ed0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,6 @@ FROM node:20 # Create app directory WORKDIR /usr/src/app -# Copy files needed by npm install -COPY package*.json ./ - -# Install app dependencies -RUN npm install --omit=dev - # Download and install kepubify RUN wget https://github.com/pgaskin/kepubify/releases/download/v4.0.4/kepubify-linux-64bit && \ mv kepubify-linux-64bit /usr/local/bin/kepubify && \ @@ -22,6 +16,12 @@ RUN wget https://archive.org/download/kindlegen2.9/kindlegen_linux_2.6_i386_v2_9 chmod +x /usr/local/bin/kindlegen && \ rm -rf kindlegen +# Copy files needed by npm install +COPY package*.json ./ + +# Install app dependencies +RUN npm install --omit=dev + # Copy the rest of the app files (see .dockerignore) COPY . ./