WIP
This commit is contained in:
+5
-3
@@ -10,6 +10,7 @@ WORKDIR /ipp
|
||||
COPY --chown=node:node package.json package-lock.json ./
|
||||
COPY --chown=node:node shared/package.json shared/
|
||||
COPY --chown=node:node app/package.json app/
|
||||
COPY --chown=node:node upload-app/package.json upload-app/
|
||||
RUN npm ci --workspace=app
|
||||
|
||||
COPY --chown=node:node shared/ shared/
|
||||
@@ -17,11 +18,12 @@ COPY --chown=node:node app/ app/
|
||||
RUN npm run build --workspace=shared --workspace=app
|
||||
|
||||
# Production tree with @ipp/core dereferenced from its workspace symlink into a
|
||||
# real folder (cp -L), so the runner's /app is self-contained. IPP's own
|
||||
# workspace link goes first: the runner has IPP at /app, not in node_modules.
|
||||
# real folder (cp -L), so the runner's /app is self-contained. The apps'
|
||||
# workspace links go first: the runner has IPP at /app, and the upload app
|
||||
# has no place in this image.
|
||||
RUN rm -rf node_modules \
|
||||
&& npm ci --workspace=app --omit=dev \
|
||||
&& rm -rf node_modules/immich-public-proxy node_modules/.bin/immich-public-proxy \
|
||||
&& rm -rf node_modules/immich-public-proxy node_modules/immich-public-proxy-upload node_modules/.bin/immich-public-proxy* \
|
||||
&& cp -rL node_modules /ipp/prod_modules \
|
||||
&& cd /ipp/prod_modules/@ipp/core \
|
||||
&& rm -rf src tests tsconfig.json vitest.config.ts dist/tsconfig.tsbuildinfo \
|
||||
|
||||
Reference in New Issue
Block a user