From 7bdcc59f0f5da9e13a5a789aefea977ddc85ddc9 Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Tue, 23 Jul 2024 14:33:59 +0100 Subject: [PATCH] Fix Dockerfile to not link tmp to /Users/sean.rankine --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02cc221..523d659 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,6 @@ RUN apt-get install -y --no-install-recommends nodejs npm;\ echo -n npm version:\ ; npm -v; \ npm install -g yarn@1.22.19 -RUN ln -fs /tmp $APP_HOME RUN groupadd -g 1001 app; \ useradd -u 1001 -g app app --home $APP_HOME @@ -29,5 +28,7 @@ RUN PLAYWRIGHT_BROWSERS_PATH=$APP_HOME/.cache/ms-playwright yarn playwright inst COPY playwright.config.js ./ COPY tests/ ./tests/ COPY lib/ ./lib/ +RUN chown -R app:app $APP_HOME + USER app CMD [ "yarn", "playwright", "test", "--reporter=dot" ]