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 . ./