blob: c05d3f38f31f3521fb0696e6b1a861d9b3c568bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# GitLab Docs Workspace Docker image
FROM debian:12.1-slim
ARG ASDF_VERSION
# Install dependencies, including packages from the Brewfile.
# hadolint ignore=DL3015
RUN printf "\n\e[32mINFO: Installing dependencies..\e[39m\n" && apt-get update && apt-get install -y \
build-essential \
ca-certificates \
curl \
git \
jq \
libssl-dev \
libyaml-dev \
minify \
yamllint \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install hadolint
RUN curl -L -o /bin/hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 \
&& chmod +x /bin/hadolint
# Install asdf
# See https://asdf-vm.com/guide/getting-started.html#official-download
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v${ASDF_VERSION} && \
echo ". $HOME/.asdf/asdf.sh" >> /root/.bashrc
# Build the docs from this branch
COPY . /source/
WORKDIR /source
# Install asdf-managed dependencies
RUN ASDF_DIR="${ASDF_DIR:-${HOME}/.asdf}" && . ~/.asdf/asdf.sh && make setup
|