| 123456789101112131415161718192021222324252627282930313233343536373839404142 | FROM --platform=linux/amd64 python:3.8.10-slim AS backendRUN mkdir -p /GreaterWMS/templates#copy requirements.txtADD ./requirements.txt /GreaterWMS/requirements.txtCOPY ./backend_start.sh /GreaterWMS/backend_start.sh#Configure working directoryWORKDIR /GreaterWMSENV port = ${port}#Installation foundation dependency#RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list#RUN apt-get cleanRUN apt-get update --fix-missing && apt-get upgrade -yRUN apt-get install build-essential -yRUN apt-get install supervisor -y#Configure pip3 Alibaba Source#RUN pip3 config set global.index-url http://mirrors.aliyun.com/pypi/simple/#RUN pip3 config set install.trusted-host mirrors.aliyun.comRUN python3 -m pip install --upgrade pip#Install supervisor daphneRUN pip3 install supervisorRUN pip3 install -U 'Twisted[tls,http2]'RUN pip3 install -r requirements.txtRUN pip3 install daphneRUN chmod +x /GreaterWMS/backend_start.shCMD ["/GreaterWMS/backend_start.sh"]FROM --platform=linux/amd64 node:14.19.3-buster-slim AS frontCOPY ./templates/package.json /GreaterWMS/templates/package.json#COPY ./templates/node_modules/ /GreaterWMS/templates/node_modules/COPY ./web_start.sh /GreaterWMS/templates/web_start.shENV port = ${port}#ENV NODE_OPTIONS=--openssl-legacy-providerRUN cd  /GreaterWMS/templatesRUN npm install -g npm --force#RUN npm config set registry https://registry.npm.taobao.orgRUN npm install -g yarn --force#RUN yarn config set registry https://registry.npm.taobao.orgRUN npm install -g @quasar/cli --forceRUN yarn installRUN chmod +x /GreaterWMS/templates/web_start.shENTRYPOINT ["/GreaterWMS/templates/web_start.sh"]
 |