diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml index 347b1f1..42c95f7 100644 --- a/.woodpecker/.deploy.yml +++ b/.woodpecker/.deploy.yml @@ -10,8 +10,7 @@ steps: CLOUDFLARE_API_TOKEN: from_secret: CLOUDFLARE_API_TOKEN commands: - - npm install - - npm run build - npm install --save-dev + - npm run build - npx wrangler pages deploy "./build/" --project-name blog --branch master --commit-dirty secrets: [CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN] diff --git a/Dockerfile b/Dockerfile index 2a4b21b..a99f3c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:18-alpine as build WORKDIR /usr/local/app COPY ./ /usr/local/app/ -RUN npm install +RUN npm install --save-dev RUN npm run build FROM nginx:latest