泊坞窗撰写多个命令

时间:2020-03-19 06:15:20

标签: python docker

我无法在rulsmalldata服务中为脚本(py)运行多个命令。您能给我解决方法吗?

version: "3"

networks:
  mlflow:
    external: true

services:
  redis:
    restart: always
    image: redis:latest
    command:
      - --loglevel warning
    container_name: "redis"

  rulsmalldata:
    image: rulsmalldata:mlflow-project-latest
    command: bash -c "python mlflow_model_run.py && python mlflow_model_serve.py && python mlflow_model_output.py"
    networks:
      - mlflow
    ports:
      - "80:80"
    environment:
      MLFLOW_TRACKING_URI: <<TRACKING_URI>>
      REDIS_ADDRESS: redis
      AZURE_STORAGE_CONNECTION_STRING: 'DefaultEndpointsProtocol=https;AccountName=<<Name>>;AccountKey=<<KEY>>EndpointSuffix=core.windows.net'

0 个答案:

没有答案