Create Dockerfile
Browse files123456789101112131415161718FROM lscr.io/linuxserver/webtop:debian-xfce
# HuggingFace ต้องการ port 7860ENV PUID=1000ENV PGID=1000ENV TZ=Asia/Bangkok
# HF รันด้วย user ไม่ใช่ root ต้องแก้ permissionRUN chmod -R 777 /config 2>/dev/null || true
EXPOSE 7860
# webtop ใช้ port 3000 ภายใน แต่ HF expose 7860# ต้องใช้ reverse proxy เล็กน้อยRUN apt-get update && apt-get install -y nginx && \ echo 'server { listen 7860; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }' > /etc/nginx/sites-available/default
CMD ["bash", "-c", "/init & sleep 5 && nginx -g 'daemon off;'"]DockerfileAdded+18