feat: Docker 一键编排补齐 sftpgo 与 celldata 库,并修复镜像缺 CellData.sql/db_init
This commit is contained in:
+7
-4
@@ -14,10 +14,13 @@ RUN pip install -r requirements.txt
|
||||
|
||||
COPY app/ ./app/
|
||||
COPY frontend/dist ./frontend/dist
|
||||
# 默认配置/脚本:首次启动由 entrypoint 播种到数据卷 /data(已存在则保留用户修改)。
|
||||
COPY Configure.json ReportScript.sql ./defaults/
|
||||
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN sed -i 's/\r$//' /usr/local/bin/entrypoint.sh && chmod +x /usr/local/bin/entrypoint.sh
|
||||
# 默认配置/脚本/特征库:首次启动由 entrypoint 播种到数据卷 /data(已存在则保留用户修改)。
|
||||
COPY Configure.json ReportScript.sql CellData.sql ./defaults/
|
||||
COPY db_init/ ./defaults/db_init/
|
||||
COPY docker/ ./docker/
|
||||
RUN sed -i 's/\r$//' /app/docker/entrypoint.sh \
|
||||
&& cp /app/docker/entrypoint.sh /usr/local/bin/entrypoint.sh \
|
||||
&& chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 9081
|
||||
|
||||
Reference in New Issue
Block a user