Reorder dockerfile to avoid rebuilding modules on all code changes
This commit is contained in:
1 parent
c9b5aef80b
commit
f174a61aee
1 file changed
+2
-1
+2
-1
@@ -9,10 +9,11 @@ RUN apt-get update && apt-get upgrade -y \
|
|||||||
&& ln -s /usr/bin/python3 /usr/bin/python
|
&& ln -s /usr/bin/python3 /usr/bin/python
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
|
||||||
ENV CUDA_DOCKER_ARCH=all
|
ENV CUDA_DOCKER_ARCH=all
|
||||||
|
COPY system/requirements/requirements_docker.txt system/requirements/requirements_docker.txt
|
||||||
RUN pip install --no-cache-dir --no-deps -r system/requirements/requirements_docker.txt && \
|
RUN pip install --no-cache-dir --no-deps -r system/requirements/requirements_docker.txt && \
|
||||||
pip install --no-cache-dir deepspeed
|
pip install --no-cache-dir deepspeed
|
||||||
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 7851 7852
|
EXPOSE 7851 7852
|
||||||
RUN chmod +x launch.sh
|
RUN chmod +x launch.sh
|
||||||
|
|||||||
Reference in new issue
Block a user