diff --git a/Dockerfile b/Dockerfile index dbd3f7eb5..513f623e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,8 @@ RUN npm run build:production # Prepare the dist image with additional node_modules WORKDIR /ghostfolio/dist/apps/api +# Exclude unnecessary dev deps +RUN sed -i '/@nx/d' package.json # package.json was generated by the build process, however the original # package-lock.json needs to be used to ensure the same versions COPY ./package-lock.json /ghostfolio/dist/apps/api/package-lock.json