Clean up build files

This commit is contained in:
Keannu Bernasol 2024-11-12 18:08:09 +08:00
parent f7d60ada76
commit e37a17f7f3
2 changed files with 2 additions and 3 deletions

View file

@ -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]

View file

@ -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