photoprism/docker/demo/Dockerfile
2021-07-15 20:06:01 +02:00

35 lines
1.2 KiB
Docker

FROM photoprism/photoprism:preview as build
# Set environment variables
ENV TF_CPP_MIN_LOG_LEVEL=2 \
PHOTOPRISM_STORAGE_PATH="/photoprism/storage" \
PHOTOPRISM_DEBUG="false" \
PHOTOPRISM_READONLY="false" \
PHOTOPRISM_PUBLIC="true" \
PHOTOPRISM_DEMO="true" \
PHOTOPRISM_EXPERIMENTAL="true" \
PHOTOPRISM_UPLOAD_NSFW="false" \
PHOTOPRISM_DETECT_NSFW="false" \
PHOTOPRISM_THUMB_FILTER="lanczos" \
PHOTOPRISM_THUMB_UNCACHED="true" \
PHOTOPRISM_THUMB_SIZE=4096 \
PHOTOPRISM_THUMB_SIZE_UNCACHED=4096 \
PHOTOPRISM_JPEG_SIZE=4096 \
PHOTOPRISM_JPEG_QUALITY=95 \
PHOTOPRISM_SITE_TITLE="Demo" \
PHOTOPRISM_SITE_CAPTION="PhotoPrism" \
PHOTOPRISM_SITE_DESCRIPTION="Open-Source Personal Photo Management. Say goodbye to solutions that force you to upload your visual memories to the cloud."
# Copy assets
COPY /docker/demo/index.tmpl /photoprism/assets/templates
# Download example photos
RUN wget -qO- https://dl.photoprism.org/qa/demo.tar.gz | tar xvz -C /photoprism/originals
# Import example photos
RUN photoprism restore -a
RUN photoprism index
RUN photoprism moments
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]