From e37a17f7f3f1fb42a245e08042b58be858f78afa Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 12 Nov 2024 18:08:09 +0800 Subject: [PATCH] Clean up build files --- .woodpecker/.deploy.yml | 3 +-- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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