From 2934f8939bd4b18f2cc3ad65e5269767ac1e9ad9 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Sat, 6 Oct 2018 19:04:17 -0500 Subject: [PATCH] make image more efficient --- docker/Dockerfile | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 38b0982..34af9a4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,24 +1,6 @@ FROM ubuntu:18.04 -RUN sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu\//http:\/\/mirror.math.princeton.edu\/pub\/ubuntu\//' /etc/apt/sources.list -RUN apt-get update -RUN echo "tzdata tzdata/Areas select America" > /tmp/tzseed.txt; \ - echo "tzdata tzdata/Zones/America select Chicago" >> /tmp/tzseed.txt; \ - debconf-set-selections /tmp/tzseed.txt && \ - apt-get install -y tzdata && \ - rm /tmp/tzseed.txt -RUN apt-get -y install nano dpkg-dev -RUN apt-get -y install build-essential -RUN apt-get -y install python -RUN apt-get -y install python3 -RUN apt-get -y install ruby -RUN apt-get -y install nodejs -RUN apt-get -y install golang -RUN apt-get -y install php7.2 -RUN apt-get -y install r-base -RUN apt-get -y install mono-complete -RUN apt-get -y install nasm -RUN apt-get -y install openjdk-8-jdk +WORKDIR /tmp RUN useradd -m runner @@ -27,4 +9,11 @@ RUN echo 'runner hard nproc 16' >> /etc/security/limits.conf RUN echo 'runner soft nofile 256' >> /etc/security/limits.conf RUN echo 'runner hard nofile 256' >> /etc/security/limits.conf -WORKDIR /tmp +RUN sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu\//http:\/\/mirror.math.princeton.edu\/pub\/ubuntu\//' /etc/apt/sources.list +RUN apt-get update && \ + echo "tzdata tzdata/Areas select America" > /tmp/tzseed.txt; \ + echo "tzdata tzdata/Zones/America select Chicago" >> /tmp/tzseed.txt; \ + debconf-set-selections /tmp/tzseed.txt && \ + apt-get install -y tzdata && \ + rm /tmp/tzseed.txt && \ + apt-get -y install nano dpkg-dev build-essential python python3 ruby nodejs golang php7.2 r-base mono-complete nasm openjdk-8-jdk