2018-12-19 01:39:42 +01:00
|
|
|
FROM photoprism/photoprism:latest 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
|
2020-06-04 14:56:27 +02:00
|
|
|
RUN wget -qO- https://dl.photoprism.org/fixtures/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
|
|
|
|
ENV PHOTOPRISM_EXPERIMENTAL true
|
|
|
|
ENV PHOTOPRISM_UPLOAD_NSFW false
|
2020-05-31 02:09:52 +02:00
|
|
|
ENV PHOTOPRISM_DETECT_NSFW false
|
2020-05-19 11:00:17 +02:00
|
|
|
ENV PHOTOPRISM_SIDECAR_JSON true
|
|
|
|
ENV PHOTOPRISM_SIDECAR_YAML false
|
|
|
|
ENV PHOTOPRISM_GEOCODING_API places
|
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
|
|
|
|
ENV PHOTOPRISM_THUMB_SIZE 3840
|
|
|
|
ENV PHOTOPRISM_THUMB_LIMIT 3840
|
2020-05-19 11:00:17 +02:00
|
|
|
ENV PHOTOPRISM_JPEG_QUALITY 95
|
2020-06-04 14:56:27 +02:00
|
|
|
ENV PHOTOPRISM_SITE_CAPTION "Try our demo"
|
2019-12-30 12:38:11 +01:00
|
|
|
|
2019-05-09 07:48:41 +02:00
|
|
|
# Import example photos
|
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
|
2019-11-11 22:14:34 +01:00
|
|
|
CMD photoprism --public start
|