Skip to content

Instantly share code, notes, and snippets.

@mkrdip
Created April 18, 2020 01:54
Show Gist options
  • Save mkrdip/130c66c908b1c0b714414659cac77001 to your computer and use it in GitHub Desktop.
Save mkrdip/130c66c908b1c0b714414659cac77001 to your computer and use it in GitHub Desktop.
Dockerfile to install JDK for Azure ML
FROM ubuntu:16.04
USER root:root
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
# Install Common Dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
# SSH and RDMA
libmlx4-1 \
libmlx5-1 \
librdmacm1 \
libibverbs1 \
libmthca1 \
libdapl2 \
dapl2-utils \
openssh-client \
openssh-server \
iproute2 && \
# Others
apt-get install -y \
build-essential \
bzip2 \
git=1:2.7.4-0ubuntu1.6 \
default-jdk \
wget \
cpio && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# Conda Environment
ENV MINICONDA_VERSION 4.5.11
ENV PATH /opt/miniconda/bin:$PATH
RUN wget -qO /tmp/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh && \
bash /tmp/miniconda.sh -bf -p /opt/miniconda && \
conda clean -ay && \
rm -rf /opt/miniconda/pkgs && \
rm /tmp/miniconda.sh && \
find / -type d -name __pycache__ | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment