chore(docker): create logs and data directories in Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user