🐛 fix: use pnpm to fix docker release

This commit is contained in:
arvinxx
2023-11-06 21:21:33 +08:00
parent 6faa53d860
commit 886cc3b516
2 changed files with 4 additions and 8 deletions
+3 -6
View File
@@ -1,12 +1,9 @@
name: Publish Docker Image
on:
push:
branches:
- main
# workflow_dispatch:
# release:
# types: [published]
workflow_dispatch:
release:
types: [published]
jobs:
push_to_registry:
+1 -2
View File
@@ -10,10 +10,9 @@ WORKDIR /app
COPY package.json ./
RUN pnpm i -g bun@1.0.8
# If you want to build docker in China
#RUN npm config set registry https://registry.npmmirror.com/
RUN bun i
RUN pnpm i
COPY . .
RUN pnpm run build:docker # run build standalone for docker version