A tiny builder container for pulling source from git.
2.2K
A tiny builder container for pulling source from git.
This container was designed as a builder container within a multi-stage build.
FROM jnovack/git-checkout as builder
# Set environment variables
ENV REPO="http://github.com/jnovack/docker-git-checkout.git"
ENV BRANCH="master"
ENV HASH="HEAD"
RUN /entrypoint.sh
FROM alpine:latest
COPY --from=builder /src /app
REPO - (string, required) A http(s):// or ssh:// git repository urlBRANCH - (string, optional) The name of your branch to download. Default: masterHASH - (string, optional) The hash of the commit. Default: HEADSSH_PRIVATE_KEY - (string, optional) SSH private key for authenticated repository downloadContent type
Image
Digest
Size
13.9 MB
Last updated
about 9 years ago
docker pull jnovack/docker-git-checkout