Merge branch 'dev' into test

This commit is contained in:
sophie committed 2026-05-12 18:47:01 +08:00
commit 178f24af97
2 files changed
+9 -2

No files matched your search

+5 -1
View File
@@ -1,4 +1,4 @@
FROM python:3.12-slim-bookworm
FROM python:3.12-slim-bookworm
WORKDIR /app
@@ -15,6 +15,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
ENV ORACLE_HOME=/app/oracle_client/instantclient_19_31
ENV LD_LIBRARY_PATH=/app/oracle_client/instantclient_19_31:/app/oracle_client:${LD_LIBRARY_PATH}
# Expose port 5000
EXPOSE 5000
@@ -22,3 +25,4 @@ EXPOSE 5000
# Start Gunicorn
# Using the config file we created earlier
CMD ["gunicorn", "-c", "deploy/gunicorn_config.py", "run:app"]
+4 -1
View File
@@ -1,4 +1,4 @@
services:
services:
# ==============================================================================
# hxops-backend: Flask 后端服务 (端口: 5000)
# ==============================================================================
@@ -18,6 +18,8 @@ services:
- FLASK_APP=${FLASK_APP:-run.py}
- FLASK_ENV=${FLASK_ENV:-production}
- ORACLE_CLIENT_LIB_DIR=${ORACLE_CLIENT_LIB_DIR:-/app/oracle_client}
- ORACLE_HOME=/app/oracle_client/instantclient_19_31
- LD_LIBRARY_PATH=/app/oracle_client/instantclient_19_31:/app/oracle_client
# 允许容器访问宿主机服务 (如数据库)
extra_hosts:
- "host.docker.internal:host-gateway"
@@ -59,3 +61,4 @@ networks:
ai-platform:
name: ai-platform
driver: bridge