FROM python:3-slim
WORKDIR /usr/src/app
COPY app/rest/requirements.txt ./
RUN python3 -m pip install --upgrade pip && \
    python3 -m pip install --no-cache-dir -r requirements.txt
COPY app ./app
CMD [ "python", "-m", "app.rest.cherrypy" ]
