Skip to content

Commit edc18c9

Browse files
authored
fix serving/Dockerfile http_proxy (#1066)
fix serving/Dockerfile
1 parent 9437c82 commit edc18c9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

serving/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ RUN apt-get update \
4141
RUN apt-get update \
4242
&& apt-get install -y --no-install-recommends libre2-5 libb64-0d python3 python3-pip libarchive-dev ffmpeg libsm6 libxext6 \
4343
&& python3 -m pip install -U pip \
44-
&& python3 -m pip install paddlenlp fast-tokenizer-python \
45-
&& python3 -m pip install paddlepaddle-gpu==2.4.1.post112 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
44+
&& python3 -m pip install paddlenlp fast-tokenizer-python
45+
46+
# unset proxy
47+
ENV http_proxy=
48+
ENV https_proxy=
49+
python3 -m pip install paddlepaddle-gpu==2.4.1.post112 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
4650

4751
COPY python/dist/*.whl /opt/fastdeploy/
4852
RUN python3 -m pip install /opt/fastdeploy/*.whl \
@@ -53,6 +57,3 @@ COPY build/fastdeploy_install /opt/fastdeploy/
5357

5458
ENV LD_LIBRARY_PATH="/opt/TensorRT-8.4.1.5/lib/:/opt/fastdeploy/lib:/opt/fastdeploy/third_libs/install/onnxruntime/lib:/opt/fastdeploy/third_libs/install/paddle2onnx/lib:/opt/fastdeploy/third_libs/install/tensorrt/lib:/opt/fastdeploy/third_libs/install/paddle_inference/paddle/lib:/opt/fastdeploy/third_libs/install/paddle_inference/third_party/install/mkldnn/lib:/opt/fastdeploy/third_libs/install/paddle_inference/third_party/install/mklml/lib:/opt/fastdeploy/third_libs/install/openvino/runtime/lib:$LD_LIBRARY_PATH"
5559
ENV PATH="/opt/tritonserver/bin:$PATH"
56-
# unset proxy
57-
ENV http_proxy=
58-
ENV https_proxy=

0 commit comments

Comments
 (0)