diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index 238823d..3f8361a 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -8,8 +8,6 @@ on: branches: - "main" workflow_dispatch: - inputs: - null env: # Use docker.io for Docker Hub if empty @@ -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 @@ -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' }} diff --git a/Dockerfile b/Dockerfile index b8363d4..186f5c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . # 暴露应用程序端口 -EXPOSE 9000 +EXPOSE 6119 # 使用非 root 用户运行应用 USER node