Commit 85b2f9a4 authored by Andreas Werner's avatar Andreas Werner
Browse files

reduce docker image size

parent b7019dd7
Pipeline #5626 failed with stage
in 25 seconds
......@@ -7,6 +7,6 @@ build:
script:
- echo $DOCKER_DRIVER
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build --pull -t gitlab.cs.hs-rm.de:4567/docker-images/ubuntu-build-essential .
- docker build --compress --pull -t gitlab.cs.hs-rm.de:4567/docker-images/ubuntu-build-essential .
- docker push gitlab.cs.hs-rm.de:4567/docker-images/ubuntu-build-essential
- docker logout $CI_REGISTRY
FROM ubuntu:18.04
ENV http_proxy <HTTP_PROXY>
ENV https_proxy <HTTPS_PROXY>
ENV http_proxy proxy.cs.hs-rm.de:8080
ENV https_proxy proxy.cs.hs-rm.de:8080
RUN echo 'Acquire::http::Proxy "http://proxy.cs.hs-rm.de:8080";' > /etc/apt/apt.conf
......@@ -8,18 +8,30 @@ RUN echo 'Acquire::http::Proxy "http://proxy.cs.hs-rm.de:8080";' > /etc/apt/apt.
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get -y install gawk wget git-core
RUN apt-get update && apt-get -y install unzip texinfo gcc-multilib build-essential
RUN apt-get update && apt-get -y install chrpath socat
RUN apt-get update && apt-get -y install python python3 python3-pip python3-pexpect python3-dev
RUN apt-get update && apt-get -y install python2.7 python2.7-dev
RUN apt-get update && apt-get -y install xz-utils debianutils iputils-ping pkg-config
RUN apt-get update && apt-get -y install tar locales subversion mercurial autotools-dev automake
RUN apt-get update && apt-get -y install libtool cmake tzdata
RUN apt-get update && apt-get -y install maven openjdk-11-jdk openjdk-11-jre
RUN apt-get update && apt-get -y install qemu qemu-system-arm
RUN apt-get update && apt-get -y install psmisc
RUN apt-get update && apt-get -y install bison flex
RUN apt-get update && apt-get -y install gawk wget git-core \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install unzip texinfo gcc-multilib build-essential \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install chrpath socat \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install python python3 python3-pip python3-pexpect python3-dev \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install python2.7 python2.7-dev \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install xz-utils debianutils iputils-ping pkg-config \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install tar locales subversion mercurial autotools-dev automake \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install libtool cmake tzdata \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install maven openjdk-11-jdk openjdk-11-jre \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install qemu qemu-system-arm \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install psmisc \
&& rm -Rf/var/lib/apt/lists/*
RUN apt-get update && apt-get -y install bison flex \
&& rm -Rf/var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8 && update-locale LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment