Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add bash to support bash snippets in the Ubuntu dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
akarbown committed Jan 27, 2021
1 parent 66cc1b4 commit 402a2b1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ci/docker/Dockerfile.build.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,17 @@ FROM $BASE_IMAGE AS base

WORKDIR /work/deps

SHELL ["/bin/bash", "-c"]
RUN export DEBIAN_FRONTEND=noninteractive && \
    export OS_RELEASE="$(cat /etc/os-release)" && \
export OS_RELEASE="$(cat /etc/os-release)" && \
apt-get update && \
apt-get install -y wget software-properties-common && \
apt-get update && \
    if [[ ${OS_RELEASE} == *"Bionic"* ]]; then \
        wget -qO - wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB | apt-key add -; \
        apt-add-repository "deb https://apt.repos.intel.com/mkl all main"; \
        INTEL_MKL="-2020.0-088"; \
    fi && \
if [[ ${OS_RELEASE} == *"Bionic"* ]]; then \
wget -qO - wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB | apt-key add -; \
apt-add-repository "deb https://apt.repos.intel.com/mkl all main"; \
INTEL_MKL="-2020.0-088"; \
fi && \
apt-get install -y \
## Utilities
curl \
Expand All @@ -62,7 +63,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
g++ \
g++-7 \
g++-8 \
        intel-mkl${INTEL_MKL} \
intel-mkl${INTEL_MKL} \
libomp-dev \
## Dependencies
libgomp1 \
Expand Down

0 comments on commit 402a2b1

Please sign in to comment.