Skip to content

Commit

Permalink
fix(machine-learning): Add the command to execute at startup (immich-…
Browse files Browse the repository at this point in the history
…app#1843)

* fix(machine-learning): Add the command to execute at startup

Previously it wasn't set in the Docker container but it should be.

* fix(docker): remove machine-learning command arg

* fix(docker): machine-learning CMD argument
  • Loading branch information
samip5 authored Feb 23, 2023
1 parent de5a6b2 commit b00631d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ services:
immich-machine-learning:
container_name: immich_machine_learning
image: altran1502/immich-machine-learning:release
command: [ "python", "src/main.py" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- model-cache:/cache
Expand Down
2 changes: 2 additions & 0 deletions machine-learning/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ RUN pip install transformers tqdm numpy scikit-learn scipy nltk sentencepiece fl
RUN pip install --no-deps sentence-transformers

COPY . .

CMD ["python", "src/main.py"]

0 comments on commit b00631d

Please sign in to comment.