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" ]