2023-05-01 11:32:31 +02:00
|
|
|
FROM photoprism/photoprism:preview-ce as build
|
2022-06-16 11:23:51 +02: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" \
|
|
|
|
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=85 \
|
|
|
|
PHOTOPRISM_APP_NAME="Demo" \
|
|
|
|
PHOTOPRISM_APP_ICON="favicon" \
|
|
|
|
PHOTOPRISM_SITE_TITLE="PhotoPrism" \
|
|
|
|
PHOTOPRISM_SITE_CAPTION="Demo" \
|
|
|
|
PHOTOPRISM_SITE_DESCRIPTION="AI-Powered Photos App for the Decentralized Web"
|
|
|
|
|
|
|
|
# Copy assets
|
2022-10-18 14:21:23 +02:00
|
|
|
COPY /docker/demo/index.gohtml /opt/photoprism/assets/templates
|
2022-06-16 11:23:51 +02:00
|
|
|
|
|
|
|
# Download example photos
|
|
|
|
RUN wget -qO- https://dl.photoprism.app/qa/demo.tar.gz | tar xvz -C /photoprism/originals
|
|
|
|
|
|
|
|
# Import example photos
|
2023-02-14 15:18:44 +01:00
|
|
|
RUN photoprism restore -a && \
|
|
|
|
photoprism index -a && \
|
|
|
|
photoprism moments && \
|
2023-04-05 17:26:16 +02:00
|
|
|
rm /photoprism/storage/config/*.yml && \
|
2023-02-14 15:18:44 +01:00
|
|
|
chmod -R a+rwX /photoprism/originals /photoprism/storage
|
2022-06-16 11:23:51 +02:00
|
|
|
|
|
|
|
# Start PhotoPrism server
|
|
|
|
CMD ["photoprism", "--public", "start"]
|