Skip to content
Snippets Groups Projects
Dockerfile 569 B
Newer Older
Niaz's avatar
Niaz committed
FROM reallibrephotos/librephotos-dependencies:dev
Niaz's avatar
Niaz committed
# install rust
Niaz's avatar
Niaz committed
RUN apt install -y rustc libtinfo5
# unzip faiss to actually installed it...
RUN unzip /usr/local/lib/python3.9/dist-packages/faiss*.egg -d /usr/local/lib/python3.9/dist-packages/
Matteo Parrucci's avatar
Matteo Parrucci committed
ARG DEBUG
RUN git clone https://github.com/LibrePhotos/librephotos .
RUN pip install -r requirements.txt
Matteo Parrucci's avatar
Matteo Parrucci committed
RUN if [ "$DEBUG" = 1 ] ; then pip install -r requirements.dev.txt ;  fi
RUN python -m spacy download en_core_web_sm
COPY entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]