From 125284456f912c22015dae257aecdc6323e9bcc7 Mon Sep 17 00:00:00 2001 From: Samuel Paccoud - DINUM Date: Mon, 20 May 2024 22:51:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(docker-compose)=20run=20node=20con?= =?UTF-8?q?tainer=20as=20logged-in=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Running the container as root will install npm modules with root access rights and generate issues when running the application with the logged in user as we do it with Docker Compose. --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 4e6adbd0..495825b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -142,6 +142,7 @@ services: - ".:/app" y-webrtc-signaling: + user: ${DOCKER_USER:-1000} build: context: . dockerfile: ./src/frontend/Dockerfile