File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
ARG region
2
2
FROM 763104351884.dkr.ecr.$region.amazonaws.com/pytorch-inference:1.6.0-cpu-py3
3
3
4
- RUN git clone https://github.com/pytorch/serve/ && cd serve/model-archiver/ && git checkout patch_release_0_3_1 && pip install . && cd -
4
+ RUN cd /tmp/ && git clone https://github.com/pytorch/serve/ && cd serve/model-archiver/ && git checkout patch_release_0_3_1 && pip install . && cd -
5
5
6
6
COPY dist/sagemaker_pytorch_inference-*.tar.gz /sagemaker_pytorch_inference.tar.gz
7
7
RUN pip install --upgrade --no-cache-dir /sagemaker_pytorch_inference.tar.gz && \
Original file line number Diff line number Diff line change 1
1
ARG region
2
2
FROM 763104351884.dkr.ecr.$region.amazonaws.com/pytorch-inference:1.6.0-gpu-py3
3
3
4
- RUN git clone https://github.com/pytorch/serve/ && cd serve/model-archiver/ && git checkout patch_release_0_3_1 && pip install . && cd -
4
+ RUN cd /tmp/ && git clone https://github.com/pytorch/serve/ && cd serve/model-archiver/ && git checkout patch_release_0_3_1 && pip install . && cd -
5
5
6
6
COPY dist/sagemaker_pytorch_inference-*.tar.gz /sagemaker_pytorch_inference.tar.gz
7
7
RUN pip install --upgrade --no-cache-dir /sagemaker_pytorch_inference.tar.gz && \
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ RUN useradd -m model-server \
38
38
COPY artifacts/ts-entrypoint.py /usr/local/bin/dockerd-entrypoint.py
39
39
COPY artifacts/config.properties /home/model-server
40
40
41
- RUN git clone https://github.com/pytorch/serve/ && cd serve/model-archiver/ && git checkout patch_release_0_3_1 && pip install . && cd -
41
+ RUN cd /tmp/ && git clone https://github.com/pytorch/serve/ && cd serve/model-archiver/ && git checkout patch_release_0_3_1 && pip install . && cd -
42
42
43
43
RUN chmod +x /usr/local/bin/dockerd-entrypoint.py
44
44
You can’t perform that action at this time.
0 commit comments