Skip to content

Commit ea981d4

Browse files
committed
Update docker.backend
1 parent 657a98c commit ea981d4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docker.backend

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ RUN echo "deb http://deb.debian.org/debian/ bookworm main contrib" > /etc/apt/so
3636

3737
ENV 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
4746
EXPOSE 4444

0 commit comments

Comments
 (0)