Warning: failed to remove node_modules: Permission denied

Hello,
In GitLab I created a Node.js project. The project files are as follows:
.gitlab-ci.yml:

image: docker:latest
services:
  - docker:dind
stages:
  - build
  - deploy
build:
  stage: build
  script:
    - docker compose build
deploy:
  stage: deploy
  script:
    - docker compose up -d

docker-compose.yml:

services:
    nginx:
      container_name: Nginx
      build:
        context: .
        dockerfile: ./cfiles/Dockerfile-1
      ports:
        - '80:80'
      volumes:
        - ./cfiles/default.conf:/etc/nginx/conf.d/default.conf
        - ./.:/usr/share/nginx/html
      depends_on:
        - nodejs
      links:
        - nodejs

    nodejs:
      container_name: NodeJS
      build:
       context: .
       dockerfile: ./cfiles/Dockerfile-2
      command: npm start
      volumes:
       - ./.:/usr/src/app
      ports:
        - 3000

Dockerfile-1:

FROM nginx:latest
COPY . /usr/share/nginx/html
COPY ./cfiles/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD nginx -g 'daemon off;'

Dockerfile-2:

FROM node:latest
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY ./package.json /usr/src/app/package.json

RUN npm install
RUN npm update

COPY . /usr/src/app
EXPOSE 3000
CMD npm start

package.json:

{
  "name": "demo",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "start": "node ./bin/www",
    "test": "mocha --exit"
  },
  "dependencies": {
    "cookie-parser": "^1.4.5",
    "debug": "^4.3.1",
    "express": "^4.17.1",
    "http-errors": "^1.8.0",
    "morgan": "^1.10.0",
    "pug": "^3.0.2"
  },
  "devDependencies": {
    "mocha": "^9.0.0",
    "supertest": "^6.1.3"
  }
}

When I run GitLab Runner, I get the following errors:

Running with gitlab-runner 16.10.0 (81ab07f6)
  on test aFELdj6Y1, system ID: s_a88f5fe318c9
Preparing the "shell" executor
Using Shell (bash) executor...
Preparing environment
Running on Lottery-Backend...
Getting source from Git repository
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /home/gitlab-runner/builds/aFELdj6Y1/0/hack3rcon/test/.git/
Checking out dc647771 as detached HEAD (ref is master)...
warning: failed to remove node_modules/nanoid/index.d.ts: Permission denied
warning: failed to remove node_modules/nanoid/README.md: Permission denied
warning: failed to remove node_modules/nanoid/index.prod.js: Permission denied
warning: failed to remove node_modules/nanoid/LICENSE: Permission denied
warning: failed to remove node_modules/nanoid/nanoid.js: Permission denied
warning: failed to remove node_modules/nanoid/bin/nanoid.cjs: Permission denied
warning: failed to remove node_modules/nanoid/index.dev.js: Permission denied
warning: failed to remove node_modules/nanoid/async/index.d.ts: Permission denied
warning: failed to remove node_modules/nanoid/async/index.native.js: Permission denied
warning: failed to remove node_modules/nanoid/async/index.cjs: Permission denied
warning: failed to remove node_modules/nanoid/async/package.json: Permission denied
warning: failed to remove node_modules/nanoid/async/index.js: Permission denied
warning: failed to remove node_modules/nanoid/async/index.browser.js: Permission denied
warning: failed to remove node_modules/nanoid/index.cjs: Permission denied
warning: failed to remove node_modules/nanoid/non-secure/index.d.ts: Permission denied
warning: failed to remove node_modules/nanoid/non-secure/index.cjs: Permission denied
warning: failed to remove node_modules/nanoid/non-secure/package.json: Permission denied
warning: failed to remove node_modules/nanoid/non-secure/index.js: Permission denied
warning: failed to remove node_modules/nanoid/url-alphabet/index.cjs: Permission denied
warning: failed to remove node_modules/nanoid/url-alphabet/package.json: Permission denied
warning: failed to remove node_modules/nanoid/url-alphabet/index.js: Permission denied
warning: failed to remove node_modules/nanoid/package.json: Permission denied
warning: failed to remove node_modules/nanoid/index.js: Permission denied
warning: failed to remove node_modules/nanoid/index.browser.js: Permission denied
warning: failed to remove node_modules/readdirp/index.d.ts: Permission denied
warning: failed to remove node_modules/readdirp/README.md: Permission denied
warning: failed to remove node_modules/readdirp/LICENSE: Permission denied
warning: failed to remove node_modules/readdirp/package.json: Permission denied
warning: failed to remove node_modules/readdirp/index.js: Permission denied
warning: failed to remove node_modules/flat/test/test.js: Permission denied
warning: failed to remove node_modules/flat/README.md: Permission denied
warning: failed to remove node_modules/flat/LICENSE: Permission denied
warning: failed to remove node_modules/flat/package.json: Permission denied
warning: failed to remove node_modules/flat/.travis.yml: Permission denied
warning: failed to remove node_modules/flat/index.js: Permission denied
warning: failed to remove node_modules/flat/cli.js: Permission denied
warning: failed to remove node_modules/to-fast-properties/readme.md: Permission denied
warning: failed to remove node_modules/to-fast-properties/license: Permission denied
warning: failed to remove node_modules/to-fast-properties/package.json: Permission denied
warning: failed to remove node_modules/to-fast-properties/index.js: Permission denied
warning: failed to remove node_modules/pug-attrs/README.md: Permission denied
warning: failed to remove node_modules/pug-attrs/LICENSE: Permission denied
warning: failed to remove node_modules/pug-attrs/package.json: Permission denied
warning: failed to remove node_modules/pug-attrs/index.js: Permission denied
warning: failed to remove node_modules/merge-descriptors/README.md: Permission denied
warning: failed to remove node_modules/merge-descriptors/LICENSE: Permission denied
warning: failed to remove node_modules/merge-descriptors/package.json: Permission denied
warning: failed to remove node_modules/merge-descriptors/HISTORY.md: Permission denied
warning: failed to remove node_modules/merge-descriptors/index.js: Permission denied
warning: failed to remove node_modules/on-headers/README.md: Permission denied
warning: failed to remove node_modules/on-headers/LICENSE: Permission denied
warning: failed to remove node_modules/on-headers/package.json: Permission denied
warning: failed to remove node_modules/on-headers/HISTORY.md: Permission denied
warning: failed to remove node_modules/on-headers/index.js: Permission denied
warning: failed to remove node_modules/which/README.md: Permission denied
warning: failed to remove node_modules/which/LICENSE: Permission denied
warning: failed to remove node_modules/which/bin/node-which: Permission denied
warning: failed to remove node_modules/which/package.json: Permission denied
warning: failed to remove node_modules/which/which.js: Permission denied
warning: failed to remove node_modules/which/CHANGELOG.md: Permission denied
warning: failed to remove node_modules/locate-path/index.d.ts: Permission denied
warning: failed to remove node_modules/locate-path/readme.md: Permission denied
warning: failed to remove node_modules/locate-path/license: Permission denied
warning: failed to remove node_modules/locate-path/package.json: Permission denied
warning: failed to remove node_modules/locate-path/index.js: Permission denied
warning: failed to remove node_modules/wrap-ansi/readme.md: Permission denied
warning: failed to remove node_modules/wrap-ansi/license: Permission denied
warning: failed to remove node_modules/wrap-ansi/package.json: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/ansi-regex/readme.md: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/ansi-regex/license: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/ansi-regex/package.json: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/ansi-regex/index.js: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/string-width/index.d.ts: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/string-width/readme.md: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/string-width/license: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/string-width/package.json: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/string-width/index.js: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.d.ts: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/strip-ansi/readme.md: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/strip-ansi/license: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/strip-ansi/package.json: Permission denied
warning: failed to remove node_modules/wrap-ansi/node_modules/strip-ansi/index.js: Permission denied
warning: failed to remove node_modules/wrap-ansi/index.js: Permission denied
warning: failed to remove node_modules/path-parse/README.md: Permission denied
warning: failed to remove node_modules/path-parse/LICENSE: Permission denied
warning: failed to remove node_modules/path-parse/package.json: Permission denied
warning: failed to remove node_modules/path-parse/index.js: Permission denied
warning: failed to remove node_modules/color-convert/README.md: Permission denied
warning: failed to remove node_modules/color-convert/LICENSE: Permission denied
warning: failed to remove node_modules/color-convert/route.js: Permission denied
warning: failed to remove node_modules/color-convert/conversions.js: Permission denied
warning: failed to remove node_modules/color-convert/package.json: Permission denied
warning: failed to remove node_modules/color-convert/CHANGELOG.md: Permission denied
warning: failed to remove node_modules/color-convert/index.js: Permission denied
warning: failed to remove node_modules/to-regex-range/README.md: Permission denied
warning: failed to remove node_modules/to-regex-range/LICENSE: Permission denied
warning: failed to remove node_modules/to-regex-range/package.json: Permission denied
warning: failed to remove node_modules/to-regex-range/index.js: Permission denied
warning: failed to remove node_modules/finalhandler/README.md: Permission denied
warning: failed to remove node_modules/finalhandler/LICENSE: Permission denied
warning: failed to remove node_modules/finalhandler/package.json: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/ms/license.md: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/ms/readme.md: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/ms/package.json: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/ms/index.js: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/Makefile: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/.eslintrc: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/.coveralls.yml: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/README.md: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/LICENSE: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/karma.conf.js: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/component.json: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/.npmignore: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/package.json: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/src/browser.js: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/src/inspector-log.js: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/src/debug.js: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/src/index.js: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/src/node.js: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/.travis.yml: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/CHANGELOG.md: Permission denied
warning: failed to remove node_modules/finalhandler/node_modules/debug/node.js: Permission denied
warning: failed to remove node_modules/finalhandler/HISTORY.md: Permission denied
...

ERROR: Job failed: exit status 1

Where is this problem?

Thank you.

Hello,
This is because of .gitlab-ci.yml file. Is the image corrupted?