File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,11 @@ RUN echo "deb http://deb.debian.org/debian/ bookworm main contrib" > /etc/apt/so
3636
3737ENV LD_LIBRARY_PATH="/magic/sqlite-plugins:${LD_LIBRARY_PATH}"
3838
39- # TODO: Commented out!
40- # This doesn't work. I suspect the reason is that it's dynamically loading the SQLite DLL or something ...?
41- # Making sure we run in the context of a custom user with restricted access to core operating system
42- # RUN groupadd -r magic && useradd -g magic magic
43- # RUN chown -R magic:magic /magic
44- # USER magic
39+ # Running Magic in user context.
40+ RUN groupadd -r magic && useradd -g magic magic
41+ RUN chmod -R a+rX /magic
42+ RUN chown -R magic:magic /magic/files
43+ USER magic
4544
4645# Our entry point
4746EXPOSE 4444
You can’t perform that action at this time.
0 commit comments