mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
b00631d186
* 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
18 lines
468 B
Docker
18 lines
468 B
Docker
FROM python:3.10
|
|
|
|
ENV TRANSFORMERS_CACHE=/cache
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN python -m venv /opt/venv
|
|
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
RUN pip install --no-cache-dir torch==1.13.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
|
RUN pip install transformers tqdm numpy scikit-learn scipy nltk sentencepiece flask Pillow
|
|
RUN pip install --no-deps sentence-transformers
|
|
|
|
COPY . .
|
|
|
|
CMD ["python", "src/main.py"]
|