@@ -32,7 +32,6 @@ RUN apt-get update -qq && apt-get install -y -q \
3232RUN locale-gen en_US.UTF-8
3333ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8
3434
35- ENV PYTHONPATH="${PYTHONPATH}:/src"
3635ENV PATH=/opt/conda/bin:$PATH
3736ENV PYTHONVERSION=3.6.9
3837
@@ -53,9 +52,11 @@ RUN /opt/conda/bin/conda create -n env -c conda-forge python=$PYTHONVERSION pip=
5352ENV BASH_ENV=~/.env
5453SHELL ["/bin/bash" , "-c" ]
5554
56- COPY pkg/cortex/serve/requirements.txt /src/cortex/serve/requirements.txt
55+ COPY pkg/cortex/serve/serve.requirements.txt /src/cortex/serve/serve.requirements.txt
56+ COPY pkg/cortex/serve/cortex_internal.requirements.txt /src/cortex/serve/cortex_internal.requirements.txt
5757RUN pip install --no-cache-dir \
58- -r /src/cortex/serve/requirements.txt
58+ -r /src/cortex/serve/serve.requirements.txt \
59+ -r /src/cortex/serve/cortex_internal.requirements.txt
5960
6061ARG SLIM="false"
6162RUN test "${SLIM}" = "true" || ( \
@@ -102,10 +103,8 @@ RUN test "${SLIM}" = "true" || ( \
102103 torchvision==0.6.1 \
103104 )
104105
105- COPY pkg/cortex/consts.py /src/cortex
106- COPY pkg/cortex/lib /src/cortex/lib
107- COPY pkg/cortex/serve /src/cortex/serve
108-
106+ COPY pkg/cortex/serve/ /src/cortex/serve
107+ RUN pip install --no-deps /src/cortex/serve/
109108RUN mv /src/cortex/serve/init/bootloader.sh /etc/cont-init.d/bootloader.sh
110109
111110ENTRYPOINT ["/init" ]
0 commit comments