photoprism/docker/demo/Dockerfile

34 lines
923 B
Text
Raw Normal View History

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
# 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
2018-12-19 00:24:02 +01:00
# 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
2020-12-02 13:47:02 +01:00
ENV PHOTOPRISM_SITE_CAPTION "Demo"
2019-05-09 07:48:41 +02:00
# Import example photos
RUN photoprism index
RUN photoprism moments
2018-12-11 02:00:30 +01:00
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]