mirror of https://github.com/allinssl/allinssl
feat: 新增dockerfile
parent
13defcc5ba
commit
806e27203e
|
@ -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
|
Loading…
Reference in New Issue