Spaces:
Runtime error
Runtime error
Download Dockerfile from DougDoIndaia/CalibreWeb: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/spaces/DougDoIndaia/CalibreWeb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DougDoIndaia/CalibreWeb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DougDoIndaia/CalibreWeb/resolve/main/Dockerfile
596 Bytes
| FROM crocodilestick/calibre-web-automated:latest | |
| # Define as variáveis que o Calibre-Web e o Hugging Face usam | |
| ENV CALIBRE_PORT=7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Copia seus arquivos para os locais que a imagem espera | |
| COPY metadata.db /config/metadata.db | |
| COPY client_secrets.json /config/client_secrets.json | |
| # Corrige permissões de forma agressiva | |
| RUN chmod -R 777 /config /calibre-library | |
| # O segredo: criamos um link simbólico da porta 8083 para a 7860 | |
| # usando a variável de ambiente que o servidor Gevent lê | |
| ENV CALIBRE_WEB_PORT=7860 | |
| # NÃO mude o CMD. Deixe o /init original rodar. | |