From 653c981df920cff7b1e7b194ddf5121f23614f15 Mon Sep 17 00:00:00 2001 From: "yi.wu" Date: Fri, 17 Mar 2017 16:09:26 +0800 Subject: [PATCH] tags for build docker image --- Dockerfile | 2 +- paddle/scripts/docker/build.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b835cc52cbe..8f3137df088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ MAINTAINER PaddlePaddle Authors ARG DEBIAN_FRONTEND=noninteractive ARG UBUNTU_MIRROR -RUN /bin/bash -c 'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i 's#http://archive.ubuntu.com#${UBUNTU_MIRROR}#g' /etc/apt/sources.list; fi' +RUN /bin/bash -c 'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i 's#http://archive.ubuntu.com/ubuntu#${UBUNTU_MIRROR}#g' /etc/apt/sources.list; fi' # ENV variables ARG BUILD_WOBOQ diff --git a/paddle/scripts/docker/build.sh b/paddle/scripts/docker/build.sh index 9f91d8b5715..b617865016d 100755 --- a/paddle/scripts/docker/build.sh +++ b/paddle/scripts/docker/build.sh @@ -16,15 +16,19 @@ if [ ${WITH_GPU} == "ON" ]; then BASE_IMAGE="nvidia/cuda:7.5-cudnn5-runtime-ubuntu14.04" if [ ${WITH_AVX} == "ON" ]; then DEB_PATH="dist/gpu/" + DOCKER_SUFFIX="gpu" else DEB_PATH="dist/gpu-noavx/" + DOCKER_SUFFIX="gpu-noavx" fi else BASE_IMAGE="python:2.7.13-slim" if [ ${WITH_AVX} == "ON" ]; then DEB_PATH="dist/cpu/" + DOCKER_SUFFIX="" else DEB_PATH="dist/cpu-noavx/" + DOCKER_SUFFIX="noavx" fi fi # If Dockerfile.* sets BUILD_AND_INSTALL to 'ON', it would have copied @@ -95,7 +99,7 @@ else MIRROR_UPDATE="\\" fi -cat > /paddle/build/Dockerfile < /paddle/build/Dockerfile.${DOCKER_SUFFIX} < -- GitLab