Download Dockerfile from SSSAssist/Thoth: direct link, hf CLI and curl.
- Browser
- Download file 911 Bytes
-
https://huggingface.co/spaces/SSSAssist/Thoth/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SSSAssist/Thoth/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SSSAssist/Thoth/resolve/main/Dockerfile
911 Bytes
| # Thoth: Hugging Face Docker Space (ya da herhangi bir Linux sunucu) için imaj. | |
| # Uygulama kodu root'a aittir ve çalışma anındaki kullanıcı (uid 1000) tarafından değiştirilemez; | |
| # yalnızca data/ klasörü yazılabilir. Derleme, bin/kafes ile Landlock kafesinde çalışır. | |
| FROM node:24-bookworm | |
| WORKDIR /app | |
| COPY package.json package-lock.json ./ | |
| RUN npm ci | |
| COPY . . | |
| # Araçlar (Tectonic, biber, tex-fmt, Pandoc), arayüz ve derleme kafesi | |
| RUN npm run setup \ | |
| && npm run build \ | |
| && gcc -O2 -Wall -Wextra -o bin/kafes server/kafes.c \ | |
| && mkdir -p data && chown node:node data | |
| USER node | |
| # Şablonların kullandığı LaTeX paketleri imaja önceden indirilir. | |
| RUN node scripts/onbellek-isit.mjs | |
| ENV NODE_ENV=production \ | |
| HOST=0.0.0.0 \ | |
| PORT=7860 \ | |
| COOKIE_SECURE=true \ | |
| COMPILE_SANDBOX=landlock | |
| EXPOSE 7860 | |
| CMD ["node", "--disable-warning=ExperimentalWarning", "server/index.js"] | |