Skip to content

Commit

Permalink
Run docker dependency installation as root user
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Dec 4, 2024
1 parent 2a8fd60 commit 4893778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#for using with an existing container like shown in docker-compose.yml
FROM mcr.microsoft.com/mssql/server:2022-latest
ADD nodirect_open.c /
USER root
RUN apt update && apt install -y gcc && \
gcc -shared -fpic -o /nodirect_open.so nodirect_open.c -ldl && \
apt purge -y gcc && \
echo "/nodirect_open.so" >> /etc/ld.so.preload
USER mssql

0 comments on commit 4893778

Please sign in to comment.