2020-12-26 17:02:15 +01:00
|
|
|
FROM photoprism/photoprism:preview as build
|
2018-12-19 00:24:02 +01:00
|
|
|
|
2021-05-15 14:05:52 +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" \
|
2021-05-17 13:06:18 +02:00
|
|
|
PHOTOPRISM_DEMO="true" \
|
2021-05-15 14:05:52 +02:00
|
|
|
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 \
|
2021-11-21 16:36:42 +01:00
|
|
|
PHOTOPRISM_APP_NAME="Demo" \
|
|
|
|
PHOTOPRISM_APP_ICON="favicon" \
|
|
|
|
PHOTOPRISM_SITE_TITLE="PhotoPrism" \
|
|
|
|
PHOTOPRISM_SITE_CAPTION="Demo" \
|
2022-02-23 14:24:50 +01:00
|
|
|
PHOTOPRISM_SITE_DESCRIPTION="Tags and finds pictures without getting in your way!"
|
2019-05-09 07:48:41 +02:00
|
|
|
|
2020-05-05 18:26:44 +02:00
|
|
|
# Copy assets
|
2022-02-23 14:24:50 +01:00
|
|
|
COPY /docker/demo/index.tmpl /opt/photoprism/assets/templates
|
2020-05-05 18:26:44 +02:00
|
|
|
|
|
|
|
# Download example photos
|
2021-12-12 20:15:52 +01:00
|
|
|
RUN wget -qO- https://dl.photoprism.app/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
|
2020-06-04 14:56:27 +02:00
|
|
|
RUN photoprism index
|
|
|
|
RUN photoprism moments
|
2018-12-11 02:00:30 +01:00
|
|
|
|
|
|
|
# Start PhotoPrism server
|
2020-10-13 22:08:00 +02:00
|
|
|
CMD ["photoprism", "--public", "start"]
|