2020-12-26 17:02:15 +01:00
|
|
|
FROM photoprism/photoprism:preview as build
|
2018-12-19 00:24:02 +01:00
|
|
|
|
2019-05-09 07:48:41 +02:00
|
|
|
# Hide TensorFlow warnings
|
|
|
|
ENV TF_CPP_MIN_LOG_LEVEL 2
|
|
|
|
|
2020-05-05 18:26:44 +02:00
|
|
|
# Copy assets
|
2020-05-31 02:09:52 +02:00
|
|
|
COPY /docker/demo/index.tmpl /photoprism/assets/templates
|
2020-05-05 18:26:44 +02:00
|
|
|
|
|
|
|
# Download example photos
|
2021-01-02 04:14:16 +01:00
|
|
|
RUN wget -qO- https://dl.photoprism.org/qa/demo.tar.gz | tar xvz -C /photoprism/originals
|
2018-12-19 00:24:02 +01:00
|
|
|
|
2019-12-30 12:38:11 +01:00
|
|
|
# Configure PhotoPrism
|
2020-05-31 02:09:52 +02:00
|
|
|
ENV PHOTOPRISM_STORAGE_PATH /photoprism/storage
|
2019-12-30 12:38:11 +01:00
|
|
|
ENV PHOTOPRISM_DEBUG false
|
|
|
|
ENV PHOTOPRISM_READONLY false
|
|
|
|
ENV PHOTOPRISM_PUBLIC true
|
2020-12-18 10:59:21 +01:00
|
|
|
ENV PHOTOPRISM_DEMO true
|
2019-12-30 12:38:11 +01:00
|
|
|
ENV PHOTOPRISM_EXPERIMENTAL true
|
|
|
|
ENV PHOTOPRISM_UPLOAD_NSFW false
|
2020-05-31 02:09:52 +02:00
|
|
|
ENV PHOTOPRISM_DETECT_NSFW false
|
2020-05-05 17:17:19 +02:00
|
|
|
ENV PHOTOPRISM_THUMB_FILTER lanczos
|
2020-05-05 17:04:13 +02:00
|
|
|
ENV PHOTOPRISM_THUMB_UNCACHED true
|
2020-07-13 15:23:54 +02:00
|
|
|
ENV PHOTOPRISM_THUMB_SIZE 4096
|
|
|
|
ENV PHOTOPRISM_THUMB_SIZE_UNCACHED 4096
|
2020-07-15 08:30:28 +02:00
|
|
|
ENV PHOTOPRISM_JPEG_SIZE 4096
|
2020-05-19 11:00:17 +02:00
|
|
|
ENV PHOTOPRISM_JPEG_QUALITY 95
|
2020-12-02 13:47:02 +01:00
|
|
|
ENV PHOTOPRISM_SITE_CAPTION "Demo"
|
2019-12-30 12:38:11 +01:00
|
|
|
|
2019-05-09 07:48:41 +02:00
|
|
|
# Import example photos
|
2021-02-22 21:21:14 +01:00
|
|
|
RUN photoprism restore -a
|
2020-06-04 14:56:27 +02:00
|
|
|
RUN photoprism index
|
|
|
|
RUN photoprism moments
|
2018-12-11 02:00:30 +01:00
|
|
|
|
|
|
|
# Start PhotoPrism server
|
2020-10-13 22:08:00 +02:00
|
|
|
CMD ["photoprism", "--public", "start"]
|