Fix permission of volumes

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
main
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
1 changed files with 3 additions and 4 deletions

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