Skip to content

Commit

Permalink
fix(server): Flask not found (immich-app#1830)
Browse files Browse the repository at this point in the history
* fix(server): Flask not found

* trial 1
  • Loading branch information
alextran1502 authored Feb 22, 2023
1 parent 2a3235f commit a3b9a0b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions machine-learning/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
FROM python:3.10

ENV TRANSFORMERS_CACHE=/cache
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

WORKDIR /usr/src/app

RUN pip install --user --no-cache-dir torch==1.13.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
RUN pip install --user transformers tqdm numpy scikit-learn scipy nltk sentencepiece flask Pillow
RUN pip install --user --no-deps sentence-transformers
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 . .

0 comments on commit a3b9a0b

Please sign in to comment.