Skip to content

Commit

Permalink
变化:对 #16 的补充更新 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
guobao2333 authored Sep 26, 2024
2 parents 5e5f704 + 6332cf4 commit b04eb46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
branches:
- "main"
workflow_dispatch:
inputs:
null

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -21,7 +19,6 @@ jobs:

build:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'workflow_dispatch' || github.event.before != github.event.after }}

permissions:
packages: write
Expand Down Expand Up @@ -58,7 +55,6 @@ jobs:
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=pr
type=sha
type=raw,value=${{ github.ref }},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=latest,enable=${{ github.event.ref_type == 'tag' }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .

# 暴露应用程序端口
EXPOSE 9000
EXPOSE 6119

# 使用非 root 用户运行应用
USER node
Expand Down

0 comments on commit b04eb46

Please sign in to comment.