mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Make the www-gitlab-com image smaller
This commit is contained in:
parent
48e6679688
commit
17982033c2
2 changed files with 38 additions and 5 deletions
|
|
@ -1,14 +1,12 @@
|
||||||
FROM ruby:2.3
|
FROM ruby:2.3-slim
|
||||||
|
|
||||||
ENV PACKAGES="git-core nodejs pandoc texlive-latex-recommended texlive-xetex texlive-fonts-recommended ed"
|
ENV PACKAGES="git-core pandoc texlive-latex-recommended texlive-xetex texlive-fonts-recommended ed"
|
||||||
|
|
||||||
ADD / /
|
ADD / /
|
||||||
RUN /scripts/install-essentials
|
RUN /scripts/install-www-gitlab-com
|
||||||
|
|
||||||
# Set UTF-8 http://jaredmarkell.com/docker-and-locales/
|
# Set UTF-8 http://jaredmarkell.com/docker-and-locales/
|
||||||
# Must be set after install-essentials is run
|
# Must be set after install-essentials is run
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
ENV LANGUAGE en_US:en
|
ENV LANGUAGE en_US:en
|
||||||
ENV LC_ALL en_US.UTF-8
|
ENV LC_ALL en_US.UTF-8
|
||||||
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
|
||||||
35
scripts/install-www-gitlab-com
Executable file
35
scripts/install-www-gitlab-com
Executable file
|
|
@ -0,0 +1,35 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xeo pipefail
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install -yq \
|
||||||
|
make gcc g++ locales \
|
||||||
|
$PACKAGES
|
||||||
|
|
||||||
|
apt-get remove -yq \
|
||||||
|
libdrm2 \
|
||||||
|
ruby \
|
||||||
|
ruby2.1 \
|
||||||
|
javascript-common \
|
||||||
|
libaudio2 \
|
||||||
|
openssh-client \
|
||||||
|
python \
|
||||||
|
python-minimal \
|
||||||
|
python2.7 \
|
||||||
|
python2.7-minimal \
|
||||||
|
rsync \
|
||||||
|
tcl \
|
||||||
|
tcl8.6 \
|
||||||
|
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-mark showauto | grep "\-doc" | xargs apt-get remove -yq
|
||||||
|
|
||||||
|
apt-get autoremove -yq
|
||||||
|
|
||||||
|
# Set UTF-8
|
||||||
|
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
||||||
|
locale-gen
|
||||||
|
update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8
|
||||||
|
locale -a
|
||||||
|
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
Loading…
Add table
Add a link
Reference in a new issue