Browse Source

ci: exclude nx packages from prod build

Signed-off-by: rare-magma <rare-magma@posteo.eu>
pull/3642/head
rare-magma 1 year ago
committed by Thomas Kaul
parent
commit
65eca8d3d1
  1. 2
      Dockerfile

2
Dockerfile

@ -37,6 +37,8 @@ RUN npm run build:production
# Prepare the dist image with additional node_modules # Prepare the dist image with additional node_modules
WORKDIR /ghostfolio/dist/apps/api 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.json was generated by the build process, however the original
# package-lock.json needs to be used to ensure the same versions # package-lock.json needs to be used to ensure the same versions
COPY ./package-lock.json /ghostfolio/dist/apps/api/package-lock.json COPY ./package-lock.json /ghostfolio/dist/apps/api/package-lock.json

Loading…
Cancel
Save