FROM python:3.7.2-slim # We copy just the requirements.txt first to leverage Docker cache COPY src/requirements.txt /app/requirements.txt WORKDIR /app RUN pip install --upgrade pip && pip3 install -r requirements.txt COPY src/. /app ENTRYPOINT [ "python3" ] CMD [ "MLTD_API.py" ]