change order

This commit is contained in:
daniel-j
2023-12-06 18:19:34 +01:00
parent 4b96d924ec
commit fa496d1793

View File

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