Relax app directory permissions in Docker (#1193)

This commit is contained in:
Jonatan Kłosko 2022-05-17 23:11:39 +02:00 committed by GitHub
parent 70ccaafa14
commit ec6de91674
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,8 @@ ENV LIVEBOOK_HOME=/data
# Copy the release build from the previous stage
COPY --from=build /app/_build/prod/rel/livebook /app
# Make release executables available to any user,
# in case someone runs the container with `--user`
RUN find /app -executable -type f -exec chmod +x {} +
# Make release files available to any user, in case someone
# runs the container with `--user`
RUN chmod -R go=u /app
CMD [ "/app/bin/livebook", "start" ]