diff --git a/.woodpecker.yml b/.woodpecker.yml index 48a19db..c47e251 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -55,6 +55,8 @@ pipeline: script: - cd /home/mnisyif/docker-containers/mnisyif/frontend - DOCKER_TAG=$(echo ${CI_COMMIT_SHA} | cut -c1-8) + - ls -la # This will list all files in the current directory + - cat Dockerfile # This will show the content of the Dockerfile - docker build -t frontend:$DOCKER_TAG . - docker stop frontend || true - docker rm frontend || true diff --git a/Dockerfile b/Dockerfile index 48ae795..4c27f84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM node:22 as build WORKDIR /app RUN npm install -g npm@10.8.2 -COPY package.json ./ -COPY package-lock.json ./ +COPY package*.json ./ RUN npm install COPY . . RUN npm run build