fix(docker): fix the start_ipfs permissions
Otherwise, we inherit the permissions from the host machine. These depend on the host machine's umask.
Steven Allen committed
Jan 15, 2020 at 17:14 UTC
c2fd41c998a0c8772484ac97865efa9b9a577a09
1 file changed
+3
Dockerfile
+3
@@ -52,6 +52,9 @@ COPY --from=0 /etc/ssl/certs /etc/ssl/certs
52
# Add suid bit on fusermount so it will run properly
53
RUN chmod 4755 /usr/local/bin/fusermount
54
55
+# Fix permissions on start_ipfs (ignore the build machine's permissions)
56
+RUN chmod 0755 /usr/local/bin/start_ipfs
57
+
58
# This shared lib (part of glibc) doesn't seem to be included with busybox.
59
COPY --from=0 /lib/x86_64-linux-gnu/libdl.so.2 /lib/libdl.so.2
60