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:master
HASH
- (string, optional) The hash of the commit. Default:HEAD
SSH_PRIVATE_KEY
- (string, optional) SSH private key for authenticated repository download