代码拉取完成,页面将自动刷新
FROM python:3.6-buster
# copy over our requirements.txt file
COPY requirements.txt /tmp/
COPY agents/ml/requirements.txt /tmp/ml_agent_requirements.txt
COPY agents/bert_agent/requirements.txt /tmp/bert_agent_requirements.txt
# Set up GCS bucket
COPY kube/gcsfuse.repo /etc/yum.repos.d/
COPY kube/gcs_credentials.json /gcs_credentials.json
RUN echo "deb http://packages.cloud.google.com/apt gcsfuse-buster main" | tee /etc/apt/sources.list.d/gcsfuse.list
RUN cat /etc/apt/sources.list.d/gcsfuse.list
RUN apt-get install curl
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN apt-get update
RUN apt-get install -y gcsfuse
RUN mkdir -p /gui/backend/logs
# upgrade pip and install required python packages
RUN pip install -U pip
RUN pip install -r /tmp/requirements.txt
RUN pip install -r /tmp/ml_agent_requirements.txt
RUN pip install -r /tmp/bert_agent_requirements.txt
# copy over our app code
COPY . .
EXPOSE 5000
WORKDIR "gui/backend"
CMD ["python", "main.py"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。