28 lines
1.6 KiB
Docker
28 lines
1.6 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl git git-lfs gzip libc6 openssh-client procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "dumb-init" "1.2.5-151" --checksum 6af98ffaa7d8585ab128bdb8f322295eadb2d9857f8507f2e7c67bff4274c3e3
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "docker-machine" "0.16.2-151" --checksum 9555865e19d874afffdeae0fc977cc32592dc51da67ed69b6a0ba9677bd4f4fd
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-152" --checksum 0c751c7e2ec0bc900a19dbec0306d6294fe744ddfb0fa64197ba1a36040092f0
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gitlab-runner" "14.10.1-152" --checksum 82aeef460511bfeb5b7acb578443134cd5864d8209e352751b4eec34dbcdd73d
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN mkdir /home/gitlab-runner && chmod -R g+rwX /home/gitlab-runner && ln -s /opt/bitnami/common/bin/dumb-init /usr/bin/dumb-init && ln -s /opt/bitnami/scripts/gitlab-runner/entrypoint.sh /entrypoint
|
|
ENV APP_VERSION="14.10.1" \
|
|
BITNAMI_APP_NAME="gitlab-runner" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/gitlab-runner/bin:$PATH"
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/usr/bin/dumb-init", "/opt/bitnami/scripts/gitlab-runner/entrypoint.sh" ]
|
|
CMD [ "run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner" ]
|