Files
geMoldInsight/Dockerfile
T
2026-08-27 14:53:22 +08:00

29 lines
834 B
Docker

# Legacy Dockerfile for geMoldInsight
#
# 说明:
# 该文件保留为历史/兼容用途,仍按旧的单体入口 `src/main.py` 组织。
# 当前模块化部署的主入口应优先使用:
# - deploy/Dockerfile.moldinsight
# - deploy/Dockerfile.inventory
# - deploy/Dockerfile.celery
# 以及 deploy/docker-compose.yml
FROM continuumio/miniconda3:latest
WORKDIR /app
COPY . .
RUN conda update -n base -c defaults conda -y && \
conda create -n moldinsight python=3.11 pythonocc-core=7.9.0 -c conda-forge -y
RUN . /opt/conda/etc/profile.d/conda.sh && \
conda activate moldinsight && \
pip install -r requirements.txt
RUN mkdir -p uploads html_output logs
RUN chmod +x start.sh
EXPOSE 8000
CMD ["/bin/bash", "-c", "source /opt/conda/etc/profile.d/conda.sh && conda activate moldinsight && python src/main.py"]