photoprism/docker/demo/Dockerfile
Michael Mayer 7940786ce9 UX: Refactor config options to be more intuitive
Make sure to update your local config files when upgrading as
the name of some config values has changed. The default
config path has changed from "settings" to "config".
2020-12-18 09:11:42 +01:00

33 lines
923 B
Docker

FROM photoprism/photoprism:latest as build
# Hide TensorFlow warnings
ENV TF_CPP_MIN_LOG_LEVEL 2
# Copy assets
COPY /docker/demo/index.tmpl /photoprism/assets/templates
# Download example photos
RUN wget -qO- https://dl.photoprism.org/fixtures/demo.tar.gz | tar xvz -C /photoprism/originals
# Configure PhotoPrism
ENV PHOTOPRISM_STORAGE_PATH /photoprism/storage
ENV PHOTOPRISM_DEBUG false
ENV PHOTOPRISM_READONLY false
ENV PHOTOPRISM_PUBLIC true
ENV PHOTOPRISM_EXPERIMENTAL true
ENV PHOTOPRISM_UPLOAD_NSFW false
ENV PHOTOPRISM_DETECT_NSFW false
ENV PHOTOPRISM_THUMB_FILTER lanczos
ENV PHOTOPRISM_THUMB_UNCACHED true
ENV PHOTOPRISM_THUMB_SIZE 4096
ENV PHOTOPRISM_THUMB_SIZE_UNCACHED 4096
ENV PHOTOPRISM_JPEG_SIZE 4096
ENV PHOTOPRISM_JPEG_QUALITY 95
ENV PHOTOPRISM_SITE_CAPTION "Demo"
# Import example photos
RUN photoprism index
RUN photoprism moments
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]