-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (31 loc) · 957 Bytes
/
Dockerfile
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
FROM docker.io/gitlab/gitlab-runner
ENV RUNNER_TOKEN=${RUNNER_TOKEN}
ENV DEBIAN_FRONTEND=noninteractive
ENV CFLAGS="-O0"
ENV STATICBUILD=true
COPY requirements-ci.txt .
RUN apt-get update -q \
&& apt-get install -qy --no-install-recommends \
acl \
build-essential \
ca-certificates \
apt-transport-https \
lsb-release \
software-properties-common \
gnupg \
gnupg2 \
&& apt-get install -qy --no-install-recommends \
python3 \
python3-distutils \
python3-dev \
python3-pip \
unzip \
gzip \
tar \
jq \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /tmp/* /var/lib/apt/lists/* \
&& python3 -m pip install --disable-pip-version-check --progress-bar off -U pip \
&& python3 -m pip install --disable-pip-version-check --progress-bar off -U -r requirements-ci.txt
VOLUME [ "/etc/gitlab-runner" ]