forked from efforting.tech/gitea.efforting.tech
12 lines
334 B
Docker
12 lines
334 B
Docker
FROM alpine:3.21
|
|
RUN apk add --no-cache git openssh-client
|
|
|
|
# Expected env vars:
|
|
# REPO_URL — git URL to clone
|
|
# REVISION — branch, tag, or full sha to check out
|
|
#
|
|
# The base worktree volume is mounted at /worktree (writable during this step only).
|
|
|
|
WORKDIR /worktree
|
|
CMD git clone "$REPO_URL" . && git checkout "$REVISION"
|