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