优化启动docker启动问题
This commit is contained in:
@@ -83,13 +83,12 @@ RUN cp ./configs/config.example.yaml ./configs/config.yaml
|
||||
# 复制数据库迁移文件
|
||||
COPY migrations ./migrations/
|
||||
|
||||
# 创建数据目录
|
||||
RUN mkdir -p /app/data/storage && \
|
||||
chown -R app:app /app
|
||||
|
||||
# 切换到非 root 用户
|
||||
USER app
|
||||
|
||||
# 创建数据目录(在 app 用户下创建,确保权限正确)
|
||||
RUN mkdir -p /app/data/storage
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 5678
|
||||
|
||||
|
||||
Reference in New Issue
Block a user