CoolFace
Apppublic

Mehrdaad021/claude-code

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
Dockerfile30 linesDownload Raw Back to root
1FROM alpine:latest
2
3RUN apk add --no-cache ca-certificates curl unzip nginx su-exec
4
5RUN adduser -D -u 1001 xray && \
6    mkdir -p /www /etc/xray \
7             /var/log/nginx \
8             /var/cache/nginx \
9             /var/lib/nginx/tmp \
10             /var/lib/nginx/logs \
11             /var/run/nginx \
12             /tmp/nginx && \
13    chown -R xray:xray /www /etc/xray /var/log/nginx /var/cache/nginx \
14                       /var/lib/nginx /var/run/nginx /tmp/nginx /tmp
15
16RUN mkdir /tmp/xray && \
17    curl -L -o /tmp/xray/xray.zip https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip && \
18    unzip /tmp/xray/xray.zip -d /tmp/xray && \
19    mv /tmp/xray/xray /usr/local/bin/ai-core && \
20    chmod +x /usr/local/bin/ai-core && \
21    rm -rf /tmp/xray
22
23COPY index.html /www/index.html
24COPY entrypoint.sh /entrypoint.sh
25RUN chmod +x /entrypoint.sh
26
27USER xray
28EXPOSE 7860
29HEALTHCHECK --interval=30s --timeout=5s CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:7860 || exit 1
30ENTRYPOINT ["/entrypoint.sh"]