From 8f76a818c8d65d26db1886b4b875018e045337f0 Mon Sep 17 00:00:00 2001 From: Murtadha Date: Fri, 12 Jul 2024 00:42:37 -0400 Subject: [PATCH] Update pipeline script --- .woodpecker.yml | 2 ++ Dockerfile | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) 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