Update to ubuntu 18.04, add dotnet core and nodejs.

This commit is contained in:
Eric Harding committed 2018-04-30 22:11:05 -04:00
1 parent 95918627ce
commit b801790f6a
1 file changed
+36 -3
+36 -3
View File
@@ -1,6 +1,6 @@
FROM ubuntu:17.10
FROM ubuntu:bionic
RUN apt-get update && apt-get install -y \
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
autoconf \
automake \
bsdmainutils \
@@ -49,6 +49,9 @@ RUN apt-get update && apt-get install -y \
sqlite3 \
tcpdump \
valgrind \
tzdata \
npm \
nodejs \
libsqlite3-dev
run pip install pybars3
@@ -75,5 +78,35 @@ sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
RUN ln -s /dev/shm/ /run/
ENV NOTVISIBLE "in users profile"
#taken from https://hub.docker.com/r/microsoft/dotnet/~/dockerfile/
# region .net core
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libunwind8 \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install .NET Core SDK
ENV DOTNET_SDK_VERSION 2.1.4
ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz
ENV DOTNET_SDK_DOWNLOAD_SHA 05FE90457A8B77AD5A5EB2F22348F53E962012A55077AC4AD144B279F6CAD69740E57F165820BFD6104E88B30E93684BDE3E858F781541D4F110F28CD52CE2B7
RUN curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \
&& echo "$DOTNET_SDK_DOWNLOAD_SHA dotnet.tar.gz" | sha512sum -c - \
&& mkdir -p /usr/share/dotnet \
&& tar -zxf dotnet.tar.gz -C /usr/share/dotnet \
&& rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
# Trigger the population of the local package cache
ENV NUGET_XMLDOC_MODE skip
RUN mkdir warmup \
&& cd warmup \
&& dotnet new \
&& cd .. \
&& rm -rf warmup \
&& rm -rf /tmp/NuGetScratch