Fix permission of volumes

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
Adrian Nöthlich 2020-05-07 11:56:22 +02:00
parent f3e2d81fd3
commit fabbdd03be
No known key found for this signature in database
GPG key ID: CBA6B4E35D326EFE

View file

@ -30,13 +30,12 @@ RUN useradd cryptpad -u 4001 -g 4001 -d /cryptpad
COPY --from=build --chown=cryptpad /cryptpad /cryptpad
USER cryptpad
# Create directory for data
RUN mkdir /cryptpad/data
# Set workdir to cryptpad
WORKDIR /cryptpad
# Create directories
RUN mkdir blob block customize data datastore
# Volumes for data persistence
VOLUME /cryptpad/blob
VOLUME /cryptpad/block