chore: try fix docker

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-02-08 18:18:13 +08:00
parent b1f69c73ad
commit a9cdd7b8c3
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,8 @@ FROM node:22-alpine as builder
WORKDIR /app
COPY . .
RUN apk add git make g++ alpine-sdk python3 py3-pip unzip
RUN corepack enable
RUN corepack prepare --activate
RUN npm i -g pnpm
RUN pnpm install
RUN pnpm bundle

View File

@@ -10,7 +10,7 @@
"author": "Innei <https://innei.in>",
"scripts": {
"format": "prettier --write \"apps/**/*.ts\" \"test/**/*.ts\" \"packages/**/*.ts\"",
"prepare": "simple-git-hooks && node scripts/init-project.mjs && corepack enable",
"prepare": "simple-git-hooks && node scripts/init-project.mjs",
"build:external": "pnpm -C \"packages/compiled\" run build",
"build": "pnpm run build:external && pnpm -C \"apps/core\" run build",
"dev": "pnpm run build:external && pnpm -C \"apps/core\" run start",