aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
blob: 98aab382bd7d5cfedc064d00f8c62af7f37b5aa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM alpine:3.10

RUN apk add --no-cache bash git openssh-client python3 tini

ARG ssh_sock_dir=/var/run/cgitize
ARG ssh_sock_path="$ssh_sock_dir/ssh-agent.sock"

ENV SSH_AUTH_SOCK "$ssh_sock_path"

COPY ["docker/entrypoint.sh", "/"]
COPY ["cgitize/", "/usr/src/cgitize/"]
WORKDIR /usr/src

ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
CMD ["python3", "-m", "cgitize.main"]