artifacts/oci/base/alpine-docker-dind/Dockerfile

21 lines
649 B
Docker
Raw Permalink Normal View History

2024-04-27 22:43:54 +08:00
FROM docker:dind
# Update APK repositories, upgrade the existing system, and install required packages
RUN apk update && \
apk upgrade && \
apk add --no-cache git bash curl
# Set environment variables for Docker daemon to listen on tcp and to disable TLS (adjust based on your security requirements)
ENV DOCKER_TLS_CERTDIR=""
ENV DOCKER_HOST=tcp://localhost:2375
2024-04-27 23:56:28 +08:00
COPY fetch_build_tag.sh /opt/
2024-04-27 22:43:54 +08:00
# Expose the default Docker daemon port
EXPOSE 2375
# Set an entrypoint that starts the Docker daemon
ENTRYPOINT ["dockerd-entrypoint.sh"]
# By default, run the Docker daemon (additional command-line options can be provided at runtime)
CMD []