photoprism/docker/demo/Dockerfile

38 lines
1.2 KiB
Text
Raw Normal View History

FROM photoprism/photoprism:preview as build
2018-12-19 00:24:02 +01:00
# Set environment variables
ENV TF_CPP_MIN_LOG_LEVEL=2 \
PHOTOPRISM_STORAGE_PATH="/photoprism/storage" \
PHOTOPRISM_DEBUG="false" \
PHOTOPRISM_READONLY="false" \
PHOTOPRISM_PUBLIC="true" \
2021-05-17 13:06:18 +02:00
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_APP_NAME="Demo" \
PHOTOPRISM_APP_ICON="favicon" \
PHOTOPRISM_SITE_TITLE="PhotoPrism" \
PHOTOPRISM_SITE_CAPTION="Demo" \
PHOTOPRISM_SITE_DESCRIPTION="AI-powered app for browsing, organizing & sharing your photo collection. Tags and finds pictures without getting in your way."
2019-05-09 07:48:41 +02:00
# 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
2018-12-19 00:24:02 +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
RUN photoprism index
RUN photoprism moments
2018-12-11 02:00:30 +01:00
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]