-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
51 lines (43 loc) · 1.51 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
ARG DOCKER_IMAGE_BASE
FROM ${DOCKER_IMAGE_BASE}
ARG REMOTE_VERSION
ENV RUNNER_VERSION=${REMOTE_VERSION}
ARG TARGETARCH
RUN apk add --no-cache --force-overwrite --update \
build-base \
openssl \
openssh \
docker-cli \
docker-cli-buildx \
docker-cli-compose \
shadow && \
wget -O /usr/local/bin/gitlab-runner https://s3.amazonaws.com/gitlab-runner-downloads/v${RUNNER_VERSION}/binaries/gitlab-runner-linux-${TARGETARCH} && \
chmod +x /usr/local/bin/gitlab-runner && \
sed "s|ash|bash|" -i /etc/passwd && \
update-ca-certificates
COPY rootfs/ /
ARG START_TIMEOUT=300000
ENV S6_KILL_FINISH_MAXTIME=${START_TIMEOUT} \
HOME=/config
# Volume mapping
VOLUME [ "${HOME}" ]
ARG BUILD_DATE
ARG CI_PROJECT_NAME
ARG CI_PROJECT_URL
ARG VCS_REF
ARG DOCKER_IMAGE_BASE
LABEL \
maintainer="G.J.R. Timmer <[email protected]>" \
build_version="${BUILD_DATE}" \
org.opencontainers.image.authors="G.J.R. Timmer <[email protected]>" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.title="${CI_PROJECT_NAME}" \
org.opencontainers.image.url="${CI_PROJECT_URL}" \
org.opencontainers.image.documentation="${CI_PROJECT_URL}" \
org.opencontainers.image.source="${CI_PROJECT_URL}.git" \
org.opencontainers.image.ref.name=${VCS_REF} \
org.opencontainers.image.revision=${VCS_REF} \
org.opencontainers.image.base.name="${DOCKER_IMAGE_BASE}" \
org.opencontainers.image.licenses=MIT \
org.opencontainers.image.vendor=timmertech.nl
# EOF