Sign inSign up

jnovack/docker-git-checkout

By jnovack

Updated about 9 years ago

A tiny builder container for pulling source from git.

Image
0

2.2K

jnovack/docker-git-checkout repository overview

docker-git-checkout

A tiny builder container for pulling source from git.

Usage

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
Environment Variables
  • REPO - (string, required) A http(s):// or ssh:// git repository url
  • BRANCH - (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

Tag summary

Content type

Image

Digest

Size

13.9 MB

Last updated

about 9 years ago

docker pull jnovack/docker-git-checkout