2017-10-19 20:37:22 +00:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
|
|
|
|
COPY docker/deadsnakes.list /etc/apt/sources.list.d/deadsnakes.list
|
|
|
|
|
|
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776
|
|
|
|
|
|
|
|
RUN apt-get update -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
2017-10-20 19:22:33 +00:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2017-10-19 20:37:22 +00:00
|
|
|
gcc \
|
|
|
|
git \
|
2017-11-21 00:22:52 +00:00
|
|
|
libbz2-dev \
|
2017-10-19 20:37:22 +00:00
|
|
|
libffi-dev \
|
2017-11-21 00:22:52 +00:00
|
|
|
libreadline-dev \
|
|
|
|
libsqlite3-dev \
|
2017-10-19 20:37:22 +00:00
|
|
|
libxml2-dev \
|
|
|
|
libxslt1-dev \
|
|
|
|
locales \
|
|
|
|
make \
|
2017-10-20 15:48:01 +00:00
|
|
|
openssh-client \
|
2017-10-20 19:22:33 +00:00
|
|
|
openssl \
|
2017-10-19 20:37:22 +00:00
|
|
|
python2.6-dev \
|
|
|
|
python2.7-dev \
|
|
|
|
python3.5-dev \
|
|
|
|
python3.6-dev \
|
|
|
|
shellcheck \
|
|
|
|
&& \
|
|
|
|
apt-get clean
|
|
|
|
|
2017-11-21 00:22:52 +00:00
|
|
|
ADD https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer /tmp/pyenv-installer
|
|
|
|
RUN bash -c 'PYENV_ROOT=/usr/local/opt/pyenv bash /tmp/pyenv-installer'
|
2018-01-10 02:00:01 +00:00
|
|
|
COPY docker/python* /tmp/
|
|
|
|
RUN bash -c 'PYENV_ROOT=/usr/local/opt/pyenv /usr/local/opt/pyenv/bin/pyenv install /tmp/python3.7.0a2'
|
|
|
|
RUN ln -s /usr/local/opt/pyenv/versions/python3.7.0a2/bin/python3.7 /usr/local/bin/python3.7
|
|
|
|
RUN ln -s /usr/local/opt/pyenv/versions/python3.7.0a2/bin/pip3.7 /usr/local/bin/pip3.7
|
2017-11-21 00:22:52 +00:00
|
|
|
|
2017-10-19 20:37:22 +00:00
|
|
|
RUN rm /etc/apt/apt.conf.d/docker-clean
|
|
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
VOLUME /sys/fs/cgroup /run/lock /run /tmp
|
|
|
|
|
|
|
|
ADD https://bootstrap.pypa.io/get-pip.py /tmp/get-pip.py
|
|
|
|
|
|
|
|
COPY requirements/*.txt /tmp/requirements/
|
|
|
|
COPY docker/requirements.sh /tmp/
|
|
|
|
RUN cd /tmp/requirements && /tmp/requirements.sh
|
|
|
|
|
|
|
|
RUN ln -s python2.7 /usr/bin/python2
|
|
|
|
RUN ln -s python3.6 /usr/bin/python3
|
|
|
|
RUN ln -s python3 /usr/bin/python
|
|
|
|
|
2018-02-08 21:07:47 +00:00
|
|
|
# Install dotnet core SDK, pwsh, and other PS/.NET sanity test tools.
|
|
|
|
# For now, we need to manually purge XML docs and other items from a Nuget dir to vastly reduce the image size.
|
|
|
|
# See https://github.com/dotnet/dotnet-docker/issues/237 for details.
|
2018-01-24 14:12:30 +00:00
|
|
|
RUN apt-get update -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
apt-transport-https \
|
|
|
|
&& \
|
|
|
|
apt-get clean
|
|
|
|
ADD https://packages.microsoft.com/config/ubuntu/16.04/prod.list /etc/apt/sources.list.d/microsoft.list
|
|
|
|
RUN curl --silent https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
|
|
|
|
RUN apt-get update -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
dotnet-sdk-2.1.4 \
|
|
|
|
powershell \
|
|
|
|
&& \
|
2018-02-08 21:07:47 +00:00
|
|
|
find /usr/share/dotnet/sdk/NuGetFallbackFolder/ -name '*.xml' -type f -delete \
|
|
|
|
&& \
|
2018-01-24 14:12:30 +00:00
|
|
|
apt-get clean
|
|
|
|
RUN dotnet --version
|
|
|
|
RUN pwsh --version
|
|
|
|
COPY requirements/sanity.ps1 /tmp/
|
|
|
|
RUN /tmp/sanity.ps1
|
|
|
|
|
2017-10-19 20:37:22 +00:00
|
|
|
ENV container=docker
|
|
|
|
CMD ["/sbin/init"]
|