aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-07-31 10:16:38 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-07-31 10:17:44 +0300
commit9181b3a021acc7585cb6f9f20da6accfce0015e0 (patch)
tree0fcb4d5a99be02ac7a934817491f50d0d32d757d /Dockerfile
parentadd some unit tests (diff)
downloadcgitize-9181b3a021acc7585cb6f9f20da6accfce0015e0.tar.gz
cgitize-9181b3a021acc7585cb6f9f20da6accfce0015e0.zip
merge my_repos.py to the config
The config is also in the TOML format now. It's a bit messy for the moment, but I'll fix it.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index b314d0f..5378dd1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,17 @@
FROM alpine:3.13
-RUN apk add --no-cache bash git openssh-client python3 tini
+RUN build_deps='gcc libffi-dev make musl-dev python3-dev py3-pip' && \
+ runtime_deps='bash git openssh-client python3 tini' && \
+ apk add --no-cache $build_deps $runtime_deps
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 ["requirements.txt", "/tmp/"]
+RUN pip3 install -r /tmp/requirements.txt
+
COPY ["docker/entrypoint.sh", "/"]
COPY ["cgitize/", "/usr/src/cgitize/"]
WORKDIR /usr/src