Skip to content

Commit

Permalink
🐛 fix: use pnpm to fix docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 6, 2023
1 parent 6faa53d commit 886cc3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 886cc3b

Please sign in to comment.