Commit c167f04a authored by Michał "rysiek" Woźniak's avatar Michał "rysiek" Woźniak
Browse files

We need the `locales` package for `locale-gen`

parent bc8755ac
...@@ -8,12 +8,6 @@ MAINTAINER Michał "rysiek" Woźniak <rysiek@occrp.org> ...@@ -8,12 +8,6 @@ MAINTAINER Michał "rysiek" Woźniak <rysiek@occrp.org>
# environment # environment
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
# just in case some tool needs UTF-8 support
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
# adding repository keys # adding repository keys
ARG ADD_REPOSITORY_KEYS= ARG ADD_REPOSITORY_KEYS=
RUN if [ "$ADD_REPOSITORY_KEYS" != "" ]; then \ RUN if [ "$ADD_REPOSITORY_KEYS" != "" ]; then \
...@@ -36,12 +30,18 @@ RUN if [ "$ADD_REPOSITORIES" != "" ]; then \ ...@@ -36,12 +30,18 @@ RUN if [ "$ADD_REPOSITORIES" != "" ]; then \
fi fi
# we might need to install some packages, but doing this in the entrypoint doesn't make any sense # we might need to install some packages, but doing this in the entrypoint doesn't make any sense
# we also need the `locales` package for `locale-gen`
ARG INSTALL_PACKAGES= ARG INSTALL_PACKAGES=
RUN if [ "$INSTALL_PACKAGES" != "" ]; then \ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y \
export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y \ locales \
$INSTALL_PACKAGES \ $INSTALL_PACKAGES \
--no-install-recommends && \ --no-install-recommends && \
rm -rf /var/lib/apt/lists/* ; \ rm -rf /var/lib/apt/lists/*
fi
# just in case some tool needs UTF-8 support
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
VOLUME ["/etc/gitlab-runner", "/home/gitlab-runner", "/output"] VOLUME ["/etc/gitlab-runner", "/home/gitlab-runner", "/output"]
Markdown is supported
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