Dockerfile 1.18 KB
Newer Older
1
FROM sameersbn/gitlab-ci-multi-runner:1.1.4-7
Michał 'rysiek' Woźniak's avatar
Michał 'rysiek' Woźniak committed
2 3 4
MAINTAINER Michał "rysiek" Woźniak <rysiek@occrp.org>

#
5
# a Gitlab CI container to be used with Jekyll static site generator
Michał 'rysiek' Woźniak's avatar
Michał 'rysiek' Woźniak committed
6 7 8 9
#

# environment
ENV DEBIAN_FRONTEND=noninteractive 
10

Michał 'rysiek' Woźniak's avatar
fixed  
Michał 'rysiek' Woźniak committed
11
# Ruby and requirements
Michał 'rysiek' Woźniak's avatar
Michał 'rysiek' Woźniak committed
12 13 14 15 16
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        ca-certificates \
        make \
        gcc \
Michał 'rysiek' Woźniak's avatar
fixed  
Michał 'rysiek' Woźniak committed
17 18 19 20
        libc-dev-bin \
        libc6-dev \
        linux-libc-dev \
        libc6 \
21
        software-properties-common \
Michał 'rysiek' Woźniak's avatar
fixed  
Michał 'rysiek' Woźniak committed
22
        nodejs && \
23
    rm -rf /var/lib/apt/lists/*
24

25 26 27 28 29 30 31 32
# need a newer Ruby
RUN add-apt-repository ppa:brightbox/ruby-ng && \
    apt-get update && \
    apt-get install -y --no-install-recommends \
        ruby2.4 \
        ruby2.4-dev && \
    rm -rf /var/lib/apt/lists/*
    
33 34 35 36 37 38 39 40
# we might need to install some packages, but doing this in the entrypoint doesn't make any sense
ARG INSTALL_PACKAGES=
RUN if [ "$INSTALL_PACKAGES" != "" ]; then \
        export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y \
            $INSTALL_PACKAGES \
            --no-install-recommends && \
        rm -rf /var/lib/apt/lists/* ; \
    fi
41 42
    
# Jekyll
43
RUN gem2.4 install jekyll bundle
Michał 'rysiek' Woźniak's avatar
Michał 'rysiek' Woźniak committed
44

45
VOLUME /output