Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Jan 2, 2025
1 parent be0fb2f commit 3c7cf4e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/github-build-push.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Build and Push Container

permissions:
contents: read
packages: write

on:
push:
workflow_dispatch:
workflow_dispatch:
jobs:
build-and-push:
runs-on: [ubuntu-latest]
Expand Down Expand Up @@ -49,4 +53,4 @@ jobs:
push: true
tags: |
ghcr.io/steve02081504/fount:latest
ghcr.io/steve02081504/fount:${{ github.sha }}
ghcr.io/steve02081504/fount:${{ github.sha }}
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ version: "3"

services:
fount:
container_name: fount
image: steve02081504/fount:latest
ports:
- "8931:8931"
volumes:
- ./data:/app/data:rw
- ./data:/app/data:rw # 挂载 data 目录以存储用户数据
- ./node_modules:/app/node_modules:rw # 挂载 node_modules 目录以缓存用户数据产生的依赖项
restart: unless-stopped
3 changes: 0 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ EXPOSE 8931
# 给予 *.sh 执行权限
RUN chmod +x /app/*.sh

# 安装依赖
RUN deno install --allow-scripts --allow-all --node-modules-dir=auto --entrypoint "/app/src/server/index.mjs"

# 使用 run.sh 作为启动脚本,并且传递参数
ENTRYPOINT ["/app/run.sh"]
CMD []

0 comments on commit 3c7cf4e

Please sign in to comment.