Dockerfiles: Add mountable volumes

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-11-01 21:51:58 +01:00
parent a7098a2d41
commit f35313b436
2 changed files with 6 additions and 0 deletions

View File

@ -116,6 +116,9 @@ RUN photoprism -v
# Expose http port
EXPOSE 2342
# Mountable volumes
VOLUME ["/photoprism/storage", "/photoprism/originals", "/photoprism/import"]
# Configure entrypoint
COPY --chown=root:root /docker/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -207,6 +207,9 @@ RUN photoprism -v
# Expose http port
EXPOSE 2342
# Mountable volumes
VOLUME ["/photoprism/storage", "/photoprism/originals", "/photoprism/import"]
# Configure entrypoint
COPY --chown=root:root /docker/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]