From 806e27203e17bacf40dda4516529faccced6fd2d Mon Sep 17 00:00:00 2001 From: YANGJINZE Date: Tue, 13 May 2025 11:04:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Edockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..363dbbe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM frolvlad/alpine-glibc + +WORKDIR /www/allinssl/ + +RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ + && apk add --no-cache curl \ + && curl https://download.allinssl.com/bin/allinssl-$(uname -s)-$(uname -m).tar.gz | tar -xz -C /www/allinssl/ \ + && apk del curl + +RUN cat > /entrypoint.sh <<'EOF' +#!/bin/sh +if [ ! -f /www/allinssl/.initialized ]; then + echo ${ALLINSSL_USER:-allinssl} | /www/allinssl/allinssl 5 + echo ${ALLINSSL_URL:-allinssl} | /www/allinssl/allinssl 4 + echo ${ALLINSSL_PWD:-allinssldocker} | /www/allinssl/allinssl 6 + echo 8888 | /www/allinssl/allinssl 7 + touch /www/allinssl/.initialized +fi +/www/allinssl/allinssl 2 +exec /www/allinssl/allinssl start +EOF +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] + +EXPOSE 8888 \ No newline at end of file