chore(docker): create logs and data directories in Dockerfile
All checks were successful
Build Backend / build (push) Successful in 2m8s
Build Backend / build-docker (push) Successful in 1m14s

This commit is contained in:
2026-05-07 11:50:59 +08:00
parent 8aa85ca4b2
commit 51fe517cb2

View File

@@ -18,8 +18,9 @@ COPY server ./carrot_bbs
# 复制配置文件 # 复制配置文件
COPY configs ./configs COPY configs ./configs
# 给可执行文件添加执行权限 # 给可执行文件添加执行权限,并创建运行时所需目录
RUN chmod +x ./carrot_bbs RUN chmod +x ./carrot_bbs \
&& mkdir -p logs data
# 暴露端口 # 暴露端口
EXPOSE 8080 EXPOSE 8080