Nilche111/floorplan3d-api
0
1# Use Miniconda32FROM continuumio/miniconda33 4# Create environment with Python 3.7 (Strictly required for TF 1.15)5RUN conda create --name imageTo3D python=3.76 7# Activate the environment8SHELL ["conda", "run", "-n", "imageTo3D", "/bin/bash", "-c"]9 10WORKDIR /app11 12# Install System Dependencies13# libgl1-mesa-glx: Required for OpenCV14# libgomp1: Required for Paddle15RUN apt-get update && apt-get install -y \16 build-essential \17 libgl1 \18 libgomp1 \19 libsm6 \20 libxext6 \21 libxrender-dev \22 && rm -rf /var/lib/apt/lists/*23 24COPY . /app25 26# 1. Install PaddlePaddle 2.4.2 from the Official Wheel Index27# We use '-f' to tell pip exactly where to find the missing whl file.28RUN pip install --upgrade pip setuptools wheel29RUN pip install paddlepaddle==2.5.2 \30 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html31RUN pip install -r requirements.txt32 33EXPOSE 786034 35CMD ["conda", "run", "-n", "imageTo3D", "python", "application.py"]