diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-08-13 02:17:40 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-08-13 02:17:40 +0300 |
commit | 3754d60d8defeb0b466829a5f9402bee5219157a (patch) | |
tree | dba17432b6eaa4d071d3d08d07d45b15256c5c66 /Dockerfile | |
parent | update .gitignore (diff) | |
download | cgitize-3754d60d8defeb0b466829a5f9402bee5219157a.tar.gz cgitize-3754d60d8defeb0b466829a5f9402bee5219157a.zip |
add Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f680993 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:3.10 + +RUN apk add --no-cache git openssh-client python3 + +ARG ssh_sock_dir=/var/run/cgit-repos +ARG ssh_sock_path="$ssh_sock_dir/ssh-agent.sock" + +ENV SSH_AUTH_SOCK "$ssh_sock_path" + +COPY ["pull/", "/usr/src/pull/"] +WORKDIR /usr/src + +CMD ["python3", "-m", "pull.main"] |