Demo: Change folder permissions in Docker image
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
b720578f7c
commit
5afa7fc558
4 changed files with 16 additions and 12 deletions
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue