aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/integration/docker/server/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-15 14:01:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-15 14:01:44 +0300
commite9023b7c9a01aea8c34cc2274e7ce55baf4c6b48 (patch)
treefe8e5c614555aeb3517e506d97681920459697f8 /test/integration/docker/server/Dockerfile
parentdocker: split into build stages (diff)
downloadcgitize-e9023b7c9a01aea8c34cc2274e7ce55baf4c6b48.tar.gz
cgitize-e9023b7c9a01aea8c34cc2274e7ce55baf4c6b48.zip
t/i/docker: use tini in server
Diffstat (limited to '')
-rw-r--r--test/integration/docker/server/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/docker/server/Dockerfile b/test/integration/docker/server/Dockerfile
index a6283d0..dcce923 100644
--- a/test/integration/docker/server/Dockerfile
+++ b/test/integration/docker/server/Dockerfile
@@ -1,6 +1,6 @@
FROM alpine:3.11
-RUN apk --no-cache add bash git openssh-server && \
+RUN apk --no-cache add bash git openssh-server tini && \
echo 'root:root' | chpasswd && \
git config --global user.name 'John Doe' && \
git config --global user.email 'John.Doe@example.com' && \
@@ -19,4 +19,5 @@ RUN chmod 0600 -- /etc/ssh/ssh_host_ed25519_key && \
COPY ["server/setup_repo.sh", "./"]
RUN ./setup_repo.sh
+ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/sbin/sshd", "-D"]