FROM python:3.7.3-stretch # Maintainer info LABEL maintainer="erickson_ruaroii@dlsu.edu.ph" # Make working directories RUN mkdir -p /food-vision-api WORKDIR /food-vision-api # Upgrade pip with no cache RUN pip install --no-cache-dir -U pip # Copy application requirements file to the created working directory COPY requirements.txt . # Install application dependencies from the requirements file RUN pip install -r requirements.txt # Copy every file in the source folder to the created working directory COPY . . # Run the python application CMD ["uvicorn", "main:app","--host","0.0.0.0","--port","7860"]