retry
All checks were successful
Docker Build and Push / build-image (push) Successful in 30m16s

This commit is contained in:
cheney 2026-04-06 13:56:27 +08:00
parent 47ed858bb1
commit 92fee2174c
2 changed files with 4 additions and 0 deletions

View File

@ -17,5 +17,8 @@ jobs:
- name: Remove old container - name: Remove old container
run: docker rm -vf iboard || true run: docker rm -vf iboard || true
- name: Recycle container
run: docker system prune --volumes -f
- name: Run container - name: Run container
run: docker run -d --name iboard -p 3080:3000 iboard run: docker run -d --name iboard -p 3080:3000 iboard

View File

@ -25,6 +25,7 @@ WORKDIR /app
# 复制必要的文件 # 复制必要的文件
COPY --from=builder /app/package*.json ./ COPY --from=builder /app/package*.json ./
COPY --from=builder /app/.next ./.next COPY --from=builder /app/.next ./.next
COPY --from=builder /app/content ./content/
# 复制public目录如果存在 # 复制public目录如果存在
COPY --from=builder /app/public* ./public/ COPY --from=builder /app/public* ./public/