diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-22 18:11:35 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-23 01:36:11 +0800 |
commit | 1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8 (patch) | |
tree | 585b6124b0100371b4bd8a291c4a59fbb5fbf1fe /docker/git-server/Dockerfile | |
parent | a931457d61b053682d5e89a0cfb411e43e5e21c7 (diff) | |
download | crupest-1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8.tar.gz crupest-1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8.tar.bz2 crupest-1e9b2436eaffa4130f6a69c3a108f6feb9dd4ac8.zip |
feat(services): refactor structure.
Diffstat (limited to 'docker/git-server/Dockerfile')
-rw-r--r-- | docker/git-server/Dockerfile | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docker/git-server/Dockerfile b/docker/git-server/Dockerfile deleted file mode 100644 index 389b777..0000000 --- a/docker/git-server/Dockerfile +++ /dev/null @@ -1,24 +0,0 @@ - -FROM debian:latest AS lighttpd-config-generator -RUN apt-get update && apt-get install -y apache2-utils -RUN --mount=type=secret,id=git-server,required=true \ - . /run/secrets/git-server && \ - htpasswd -cb /user-info ${CRUPEST_GIT_SERVER_USERNAME} ${CRUPEST_GIT_SERVER_PASSWORD} -ARG ROOT_URL -ADD cgitrc.template /cgitrc.template -RUN sed "s|@@CRUPEST_ROOT_URL@@|${ROOT_URL}|g" /cgitrc.template > /cgitrc - -FROM debian:latest -RUN apt-get update && apt-get install -y \ - git cgit lighttpd apache2-utils python3-pygments python3-markdown \ - tar gzip bzip2 zip unzip tini && \ - rm -rf /var/lib/apt/lists/* - -COPY --from=lighttpd-config-generator /user-info /app/ -COPY --from=lighttpd-config-generator /cgitrc /etc/cgitrc -ADD git-lighttpd.conf git-auth.conf /app/ -ADD --chmod=755 lighttpd-wrapper /app/ - -VOLUME [ "/git" ] -ENTRYPOINT ["/usr/bin/tini", "--"] -CMD [ "/app/lighttpd-wrapper" ] |