mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
Add image for doc-gitlab-com
This commit is contained in:
parent
1c33d8a3b2
commit
88c5adb85d
2 changed files with 29 additions and 0 deletions
12
Dockerfile.doc-gitlab-com
Normal file
12
Dockerfile.doc-gitlab-com
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
FROM ruby:2.3-slim
|
||||||
|
|
||||||
|
ENV PACKAGES="git-core pandoc locales"
|
||||||
|
|
||||||
|
ADD / /
|
||||||
|
RUN /scripts/install-doc-gitlab-com
|
||||||
|
|
||||||
|
# Set UTF-8 http://jaredmarkell.com/docker-and-locales/
|
||||||
|
# Must be set after install-essentials is run
|
||||||
|
ENV LANG en_US.UTF-8
|
||||||
|
ENV LANGUAGE en_US:en
|
||||||
|
ENV LC_ALL en_US.UTF-8
|
||||||
17
scripts/install-doc-gitlab-com
Executable file
17
scripts/install-doc-gitlab-com
Executable file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xeo pipefail
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install -yq --no-install-recommends \
|
||||||
|
$PACKAGES
|
||||||
|
|
||||||
|
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