make image more efficient

This commit is contained in:
Brian Seymour 2018-10-06 19:04:17 -05:00
parent 101cf9aeeb
commit 2934f8939b
1 changed files with 9 additions and 20 deletions

View File

@ -1,24 +1,6 @@
FROM ubuntu:18.04 FROM ubuntu:18.04
RUN sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu\//http:\/\/mirror.math.princeton.edu\/pub\/ubuntu\//' /etc/apt/sources.list WORKDIR /tmp
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
RUN useradd -m runner 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 soft nofile 256' >> /etc/security/limits.conf
RUN echo 'runner hard 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