2019-05-20 16:39:41 +02:00
|
|
|
FROM photoprism/development:20190520
|
2018-11-08 10:56:11 +01:00
|
|
|
|
|
|
|
# Install Python and TensorFlow
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
python3 \
|
|
|
|
python-setuptools \
|
|
|
|
python3-dev \
|
|
|
|
&& \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
|
|
|
|
python get-pip.py && \
|
|
|
|
rm get-pip.py
|
|
|
|
|
|
|
|
RUN pip --no-cache-dir install --upgrade \
|
|
|
|
tensorflow \
|
|
|
|
requests \
|
|
|
|
Pillow \
|
|
|
|
h5py \
|
|
|
|
ipykernel \
|
|
|
|
jupyter \
|
|
|
|
keras_applications \
|
|
|
|
keras_preprocessing \
|
|
|
|
matplotlib \
|
|
|
|
numpy \
|
|
|
|
pandas \
|
|
|
|
scipy \
|
|
|
|
sklearn \
|
|
|
|
&& \
|
|
|
|
python -m ipykernel.kernelspec
|
|
|
|
|
|
|
|
# Set up project directory
|
|
|
|
WORKDIR "/go/src/github.com/photoprism/photoprism"
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
# Build PhotoPrism
|
|
|
|
RUN make all install
|
|
|
|
|
|
|
|
# Start PhotoPrism server
|
2019-04-18 06:33:34 +02:00
|
|
|
CMD photoprism start
|