create /data and give ownership to node user

This should fix:
#224
#265
#301
#319
This commit is contained in:
Gerrit Gogel 2020-12-29 09:38:22 +01:00 committed by GitHub
parent 9dfa45a8a0
commit 2b52b5995a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,8 @@ COPY --from=builder /home/node/matrix-dimension/config /home/node/matrix-dimensi
RUN chown -R node /home/node/matrix-dimension
RUN mkdir /data && chown -R node /data
USER node
RUN npm clean-install --production