Skip to content

Commit

Permalink
fix: build CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Mar 27, 2024
1 parent d4288a6 commit 9647bd1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion root/usr/local/bin/immich
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

node /app/immich/server/node_modules/.bin/immich "$@"
node /app/immich/cli/dist/index.js "$@"
13 changes: 12 additions & 1 deletion templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ RUN \
{% endif -%}
echo "**** create folders ****" && \
mkdir -p \
/app/immich/cli \
/app/immich/geodata \
{% if machine_learning_provider -%}
/app/immich/machine-learning/ann \
{% endif -%}
/app/immich/server \
/app/immich/server/www \
/tmp/immich-dependencies \
/tmp/immich \
Expand Down Expand Up @@ -220,6 +220,17 @@ RUN \
static \
/app/immich/server/www && \
{% if machine_learning_provider -%}
echo "**** build CLI ****" && \
cd /tmp/immich/cli && \
npm ci && \
npm run build && \
npm prune --omit=dev --omit=optional && \
cp -a \
package.json \
package-lock.json \
node_modules \
dist \
/app/immich/cli && \
echo "**** build machine-learning ****" && \
cd /tmp/immich/machine-learning && \
{% if machine_learning_provider == "openvino" -%}
Expand Down

0 comments on commit 9647bd1

Please sign in to comment.