Demo: Change folder permissions in Docker image

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-02-14 15:18:44 +01:00
parent b720578f7c
commit 5afa7fc558
4 changed files with 16 additions and 12 deletions

View file

@ -29,9 +29,10 @@ COPY /docker/demo/index.gohtml /opt/photoprism/assets/templates
RUN wget -qO- https://dl.photoprism.app/qa/demo.tar.gz | tar xvz -C /photoprism/originals
# Import example photos
RUN photoprism restore -a
RUN photoprism index -a
RUN photoprism moments
RUN photoprism restore -a && \
photoprism index -a && \
photoprism moments && \
chmod -R a+rwX /photoprism/originals /photoprism/storage
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]

View file

@ -29,9 +29,10 @@ COPY /docker/demo/index.gohtml /opt/photoprism/assets/templates
RUN wget -qO- https://dl.photoprism.app/qa/demo.tar.gz | tar xvz -C /photoprism/originals
# Import example photos
RUN photoprism restore -a
RUN photoprism index -a
RUN photoprism moments
RUN photoprism restore -a && \
photoprism index -a && \
photoprism moments && \
chmod -R a+rwX /photoprism/originals /photoprism/storage
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]

View file

@ -29,9 +29,10 @@ COPY /docker/demo/index.gohtml /opt/photoprism/assets/templates
RUN wget -qO- https://dl.photoprism.app/qa/demo.tar.gz | tar xvz -C /photoprism/originals
# Import example photos
RUN photoprism restore -a
RUN photoprism index -a
RUN photoprism moments
RUN photoprism restore -a && \
photoprism index -a && \
photoprism moments && \
chmod -R a+rwX /photoprism/originals /photoprism/storage
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]

View file

@ -29,9 +29,10 @@ COPY /docker/demo/index.gohtml /opt/photoprism/assets/templates
RUN wget -qO- https://dl.photoprism.app/qa/demo.tar.gz | tar xvz -C /photoprism/originals
# Import example photos
RUN photoprism restore -a
RUN photoprism index -a
RUN photoprism moments
RUN photoprism restore -a && \
photoprism index -a && \
photoprism moments && \
chmod -R a+rwX /photoprism/originals /photoprism/storage
# Start PhotoPrism server
CMD ["photoprism", "--public", "start"]