FROM $image_prefix-base-backend 

MAINTAINER afa@afa.com

WORKDIR /workspaces/backend

COPY src/backend  /workspaces/backend

RUN pip3 install -r /workspaces/backend/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \
    && rm -rf /root/.cache/pip /root/.python_history /root/.wget-hsts

ENTRYPOINT ["/bin/sh","-c","./docker-entrypoint.sh"]
