Skip to content

Commit

Permalink
Making sure we run container in magic user context
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Nov 9, 2023
1 parent 911e308 commit 380e712
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ ENTRYPOINT ["dotnet", "backend.dll"]
# Making sure we run apt-get to get necessary requirements for SQLite plugins
RUN apt-get update
RUN apt-get install -y libgomp1 libatlas-base-dev liblapack-dev

# Making sure we run in the context of a custom user with restricted access to core operating system
RUN groupadd -r magic && useradd -g magic magic
RUN chown -R magic:magic /magic/files
USER magic

0 comments on commit 380e712

Please sign in to comment.