Skip to content

Commit 3323fb6

Browse files
authored
Update docker files to put 'unattended-upgrades' in a right place(#5983)
1 parent 2ec211e commit 3323fb6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

dockerfiles/Dockerfile.cuda

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ FROM nvidia/cuda:10.2-cudnn8-devel
99
MAINTAINER Changming Sun "chasun@microsoft.com"
1010
ADD . /code
1111

12-
ENV DEBIAN_FRONTEND=noninteractive
13-
RUN apt-get update && apt-get install -y --no-install-recommends python3-dev ca-certificates g++ python3-numpy gcc make git python3-setuptools python3-wheel python3-pip unattended-upgrades
14-
RUN unattended-upgrade
15-
1612
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
1713
RUN apt-get update && apt-get install -y --no-install-recommends python3-dev ca-certificates g++ python3-numpy gcc make git python3-setuptools python3-wheel python3-pip aria2 && aria2c -q -d /tmp -o cmake-3.18.2-Linux-x86_64.tar.gz https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-Linux-x86_64.tar.gz && tar -zxf /tmp/cmake-3.18.2-Linux-x86_64.tar.gz --strip=1 -C /usr
1814

@@ -21,4 +17,5 @@ RUN cd /code && /bin/bash ./build.sh --skip_submodule_sync --cuda_home /usr/loca
2117
FROM nvidia/cuda:10.2-cudnn8-runtime
2218
COPY --from=0 /code/build/Linux/Release/dist /root
2319
COPY --from=0 /code/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt
24-
RUN apt-get update && apt-get install -y --no-install-recommends libstdc++6 ca-certificates python3-setuptools python3-wheel python3-pip && python3 -m pip install /root/*.whl && rm -rf /root/*.whl
20+
ENV DEBIAN_FRONTEND=noninteractive
21+
RUN apt-get update && apt-get install -y --no-install-recommends libstdc++6 ca-certificates python3-setuptools python3-wheel python3-pip unattended-upgrades && unattended-upgrade && python3 -m pip install /root/*.whl && rm -rf /root/*.whl

dockerfiles/Dockerfile.source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ RUN cd /code && /bin/bash ./build.sh --skip_submodule_sync --use_openmp --config
1717
FROM ubuntu:18.04
1818
COPY --from=0 /code/build/Linux/Release/dist /root
1919
COPY --from=0 /code/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt
20-
RUN apt-get update && apt-get install -y --no-install-recommends libstdc++6 libgomp1 ca-certificates python3-setuptools python3-wheel python3-pip && python3 -m pip install /root/*.whl && rm -rf /root/*.whl
20+
RUN apt-get update && apt-get install -y --no-install-recommends libstdc++6 libgomp1 ca-certificates python3-setuptools python3-wheel python3-pip unattended-upgrades && unattended-upgrade && python3 -m pip install /root/*.whl && rm -rf /root/*.whl

0 commit comments

Comments
 (0)