Skip to content

Commit

Permalink
fix: Fix version file copy in production Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
3377 committed Dec 17, 2024
1 parent 4fda17f commit bd841e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 配置文件(可能包含敏感信息)
config/config.yaml

# 运行时数据
data/sent_items.txt
data/stats.yaml

# 其他
.DS_Store
*.log
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ COPY --from=builder /build/bot /app/bot
# 创建必要的目录
RUN mkdir -p /app/config /app/data

# 复制version文件到config目录
COPY version /app/config/version
# 复制version文件到config目录(从构建阶段复制)
COPY --from=builder /build/config/version /app/config/version

# 复制entrypoint脚本
COPY entrypoint.sh /app/entrypoint.sh
Expand Down

0 comments on commit bd841e5

Please sign in to comment.