mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-15 09:55:37 +08:00
25 lines
822 B
Docker
25 lines
822 B
Docker
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 |