1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

fix(server): Flask not found (#1830)

* fix(server): Flask not found

* trial 1
This commit is contained in:
Alex 2023-02-22 10:53:59 -06:00 committed by GitHub
parent 2a3235f606
commit a3b9a0be3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,16 @@
FROM python:3.10 FROM python:3.10
ENV TRANSFORMERS_CACHE=/cache ENV TRANSFORMERS_CACHE=/cache
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /usr/src/app 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 python -m venv /opt/venv
RUN pip install --user transformers tqdm numpy scikit-learn scipy nltk sentencepiece flask Pillow ENV PATH="/opt/venv/bin:$PATH"
RUN pip install --user --no-deps sentence-transformers
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 . . COPY . .